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