diff options
Diffstat (limited to 'assets/Compute.glsl')
| -rw-r--r-- | assets/Compute.glsl | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/assets/Compute.glsl b/assets/Compute.glsl deleted file mode 100644 index 9a36a84..0000000 --- a/assets/Compute.glsl +++ /dev/null @@ -1,24 +0,0 @@ -#type compute -#version 430 core - -layout(local_size_x = 256) in; - -layout(std430, binding = 0) buffer InputBuffer -{ - float data[]; -} inputBuffer; - -layout(std430, binding = 1) buffer OutputBuffer -{ - float data[]; -} outputBuffer; - -uniform float u_Scale; -uniform float u_Offset; - -void main() -{ - uint index = gl_GlobalInvocationID.x; - float inputValue = inputBuffer.data[index]; - outputBuffer.data[index] = inputValue * u_Scale + u_Offset; -} |
