LinkedShader.h 745 B

123456789101112131415161718192021222324252627282930313233
  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/Error.h>
  8. #include <AK/NonnullOwnPtr.h>
  9. #include <AK/String.h>
  10. #include <AK/Vector.h>
  11. #include <LibGLSL/ObjectFile.h>
  12. #include <LibGPU/IR.h>
  13. namespace GLSL {
  14. // FIXME: Implement this class
  15. class LinkedShader final {
  16. public:
  17. LinkedShader(const GPU::IR::Shader& intermediate_shader_representation)
  18. : m_intermediate_shader_representation { intermediate_shader_representation }
  19. {
  20. }
  21. GPU::IR::Shader const& intermediate_shader_representation() const { return m_intermediate_shader_representation; }
  22. private:
  23. GPU::IR::Shader m_intermediate_shader_representation;
  24. };
  25. }