2014-07-26 10:17:09 -07:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-16 21:38:14 -08:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-07-26 10:17:09 -07:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-12-17 01:30:55 -08:00
|
|
|
#include "video_core/shader/debug_data.h"
|
2016-12-17 01:21:16 -08:00
|
|
|
#include "video_core/shader/shader.h"
|
|
|
|
|
2014-07-26 10:17:09 -07:00
|
|
|
namespace Pica {
|
|
|
|
|
2015-07-21 16:04:05 -07:00
|
|
|
namespace Shader {
|
2014-07-26 10:17:09 -07:00
|
|
|
|
2016-12-17 01:21:16 -08:00
|
|
|
class InterpreterEngine final : public ShaderEngine {
|
|
|
|
public:
|
2016-12-17 16:16:02 -08:00
|
|
|
void SetupBatch(ShaderSetup& setup, unsigned int entry_point) override;
|
|
|
|
void Run(const ShaderSetup& setup, UnitState& state) const override;
|
2016-12-17 01:30:55 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Produce debug information based on the given shader and input vertex
|
2017-02-26 17:58:51 -08:00
|
|
|
* @param setup Shader engine state
|
|
|
|
* @param input Input vertex into the shader
|
2016-12-17 01:30:55 -08:00
|
|
|
* @param config Configuration object for the shader pipeline
|
|
|
|
* @return Debug information for this shader with regards to the given vertex
|
|
|
|
*/
|
2016-12-18 16:42:19 -08:00
|
|
|
DebugData<true> ProduceDebugInfo(const ShaderSetup& setup, const AttributeBuffer& input,
|
2017-01-28 13:03:13 -08:00
|
|
|
const ShaderRegs& config) const;
|
2016-12-17 01:21:16 -08:00
|
|
|
};
|
2014-07-26 10:17:09 -07:00
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
} // namespace
|