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: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:
|
|
|
|
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 02:57:10 -05:00
|
|
|
|
2016-12-17 04:21:16 -05:00
|
|
|
private:
|
|
|
|
const ShaderSetup* setup = nullptr;
|
|
|
|
};
|
2014-07-26 13:17:09 -04:00
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
} // namespace
|