shader_interpreter.h 962 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "video_core/shader/debug_data.h"
  6. #include "video_core/shader/shader.h"
  7. namespace Pica {
  8. namespace Shader {
  9. class InterpreterEngine final : public ShaderEngine {
  10. public:
  11. void SetupBatch(ShaderSetup& setup, unsigned int entry_point) override;
  12. void Run(const ShaderSetup& setup, UnitState& state) const override;
  13. /**
  14. * Produce debug information based on the given shader and input vertex
  15. * @param input Input vertex into the shader
  16. * @param config Configuration object for the shader pipeline
  17. * @return Debug information for this shader with regards to the given vertex
  18. */
  19. DebugData<true> ProduceDebugInfo(const ShaderSetup& setup, const AttributeBuffer& input,
  20. const ShaderRegs& config) const;
  21. };
  22. } // namespace
  23. } // namespace