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