Shader.h 493 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Vector.h>
  8. #include <LibGPU/Shader.h>
  9. #include <LibSoftGPU/ISA.h>
  10. namespace SoftGPU {
  11. class Shader final : public GPU::Shader {
  12. public:
  13. Shader(void const* ownership_token, Vector<Instruction> const&);
  14. Vector<Instruction> const& instructions() const { return m_instructions; }
  15. private:
  16. Vector<Instruction> m_instructions;
  17. };
  18. }