shader_interpreter.h 1004 B

1234567891011121314151617181920212223242526272829303132
  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 setup Shader engine state
  16. * @param input Input vertex into the shader
  17. * @param config Configuration object for the shader pipeline
  18. * @return Debug information for this shader with regards to the given vertex
  19. */
  20. DebugData<true> ProduceDebugInfo(const ShaderSetup& setup, const AttributeBuffer& input,
  21. const ShaderRegs& config) const;
  22. };
  23. } // namespace
  24. } // namespace