From 88687aaf84d8d4d7a4b8d19c0e0fc59a1afb0c77 Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Sat, 20 Jan 2024 01:24:02 +0100 Subject: [PATCH] Fix the Empty backend --- Sources/kha/graphics1/Graphics4.hx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Sources/kha/graphics1/Graphics4.hx b/Sources/kha/graphics1/Graphics4.hx index 7657b087c..0ca1029f9 100644 --- a/Sources/kha/graphics1/Graphics4.hx +++ b/Sources/kha/graphics1/Graphics4.hx @@ -6,10 +6,12 @@ import kha.Blob; import kha.Color; import kha.FastFloat; import kha.Image; +import kha.graphics4.ComputeShader; import kha.graphics4.ConstantLocation; import kha.graphics4.IndexBuffer; import kha.graphics4.MipMapFilter; import kha.graphics4.PipelineState; +import kha.graphics4.ShaderStorageBuffer; import kha.graphics4.TextureFilter; import kha.graphics4.TextureAddressing; import kha.graphics4.TextureUnit; @@ -293,4 +295,16 @@ class Graphics4 implements kha.graphics4.Graphics { public function maxBoundTextures(): Int { return 16; } + + public function setShaderStorageBuffer(buffer: ShaderStorageBuffer, index: Int) { + + } + + public function setComputeShader(shader: ComputeShader) { + + } + + public function compute(x: Int, y: Int, z: Int) { + + } }