mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 05:05:46 +00:00
VideoCore/Shader: Move ProduceDebugInfo to InterpreterEngine
This commit is contained in:
parent
a9b7752b9d
commit
ade7ed7c5f
5 changed files with 11 additions and 19 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "video_core/shader/debug_data.h"
|
||||
#include "video_core/shader/shader.h"
|
||||
|
||||
namespace Pica {
|
||||
|
@ -14,8 +15,16 @@ class InterpreterEngine final : public ShaderEngine {
|
|||
public:
|
||||
void SetupBatch(const ShaderSetup* setup) override;
|
||||
void Run(UnitState& state, unsigned int entry_point) const override;
|
||||
|
||||
/**
|
||||
* Produce debug information based on the given shader and input vertex
|
||||
* @param input Input vertex into the shader
|
||||
* @param num_attributes The number of vertex shader attributes
|
||||
* @param config Configuration object for the shader pipeline
|
||||
* @return Debug information for this shader with regards to the given vertex
|
||||
*/
|
||||
DebugData<true> ProduceDebugInfo(const InputVertex& input, int num_attributes,
|
||||
unsigned int entry_point) const override;
|
||||
unsigned int entry_point) const;
|
||||
|
||||
private:
|
||||
const ShaderSetup* setup = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue