2014-07-26 19:17:09 +02:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 06:38:14 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-07-26 19:17:09 +02:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-12-17 10:30:55 +01:00
|
|
|
#include "video_core/shader/debug_data.h"
|
2016-12-17 10:21:16 +01:00
|
|
|
#include "video_core/shader/shader.h"
|
|
|
|
|
2014-07-26 19:17:09 +02:00
|
|
|
namespace Pica {
|
|
|
|
|
2015-07-22 01:04:05 +02:00
|
|
|
namespace Shader {
|
2014-07-26 19:17:09 +02:00
|
|
|
|
2016-12-17 10:21:16 +01:00
|
|
|
class InterpreterEngine final : public ShaderEngine {
|
|
|
|
public:
|
2016-12-18 01:16:02 +01:00
|
|
|
void SetupBatch(ShaderSetup& setup, unsigned int entry_point) override;
|
|
|
|
void Run(const ShaderSetup& setup, UnitState& state) const override;
|
2016-12-17 10:30:55 +01: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 01:42:19 +01:00
|
|
|
DebugData<true> ProduceDebugInfo(const ShaderSetup& setup, const AttributeBuffer& input,
|
2016-12-19 02:25:03 +01:00
|
|
|
const Regs::ShaderConfig& config) const;
|
2016-12-17 10:21:16 +01:00
|
|
|
};
|
2014-07-26 19:17:09 +02:00
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
} // namespace
|