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: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:
|
|
|
|
void SetupBatch(const ShaderSetup* setup) override;
|
|
|
|
void Run(UnitState& state, unsigned int entry_point) const override;
|
|
|
|
DebugData<true> ProduceDebugInfo(const InputVertex& input, int num_attributes,
|
|
|
|
unsigned int entry_point) const override;
|
2016-12-16 08:57:10 +01:00
|
|
|
|
2016-12-17 10:21:16 +01:00
|
|
|
private:
|
|
|
|
const ShaderSetup* setup = nullptr;
|
|
|
|
};
|
2014-07-26 19:17:09 +02:00
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
} // namespace
|