environment.h 367 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <array>
  3. #include "common/common_types.h"
  4. namespace Shader {
  5. class Environment {
  6. public:
  7. virtual ~Environment() = default;
  8. [[nodiscard]] virtual u64 ReadInstruction(u32 address) = 0;
  9. [[nodiscard]] virtual u32 TextureBoundBuffer() = 0;
  10. [[nodiscard]] virtual std::array<u32, 3> WorkgroupSize() = 0;
  11. };
  12. } // namespace Shader