summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGLSL/LinkedShader.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2022-09-18 16:18:12 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-17 22:39:09 -0700
commit5bab17596d71e2bdbecce7eff288279e41e34539 (patch)
tree490de3d283084887177793b3c8ad273d25fa22ed /Userland/Libraries/LibGLSL/LinkedShader.h
parentc88bc74afd5e40d60c10d87920b28adbe7a13fe4 (diff)
downloadserenity-5bab17596d71e2bdbecce7eff288279e41e34539.zip
LibGLSL: Fill LinkedShaders with dummy IR code
Diffstat (limited to 'Userland/Libraries/LibGLSL/LinkedShader.h')
-rw-r--r--Userland/Libraries/LibGLSL/LinkedShader.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGLSL/LinkedShader.h b/Userland/Libraries/LibGLSL/LinkedShader.h
index 10fd4ffdf0..65d485be73 100644
--- a/Userland/Libraries/LibGLSL/LinkedShader.h
+++ b/Userland/Libraries/LibGLSL/LinkedShader.h
@@ -11,12 +11,23 @@
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibGLSL/ObjectFile.h>
+#include <LibGPU/IR.h>
namespace GLSL {
// FIXME: Implement this class
class LinkedShader final {
+public:
+ LinkedShader(const GPU::IR::Shader& intermediate_shader_representation)
+ : m_intermediate_shader_representation { intermediate_shader_representation }
+ {
+ }
+
+ GPU::IR::Shader const& intermediate_shader_representation() const { return m_intermediate_shader_representation; }
+
+private:
+ GPU::IR::Shader m_intermediate_shader_representation;
};
}