CyanEmber
CyanEmber
TIPThe Iris Project
Created by CyanEmber on 10/29/2023 in #iris-issues
Compute shader not working
Just as it says. This should set the color of the screen to pure white, but I only see the default fallback shaders.
//composite.csh
#version 430

layout (local_size_x = 16, local_size_y = 16) in;
layout (rgba8) uniform image2D colorimg0;

//const ivec3 workGroups = ivec3(50, 30, 1);
const vec2 workGroupsRender = vec2(1.0f, 1.0f);

void main() {
ivec2 pixelCoords = ivec2(gl_GlobalInvocationID.xy);

imageStore(colorimg0, pixelCoords, vec4(1.0));
}
//composite.csh
#version 430

layout (local_size_x = 16, local_size_y = 16) in;
layout (rgba8) uniform image2D colorimg0;

//const ivec3 workGroups = ivec3(50, 30, 1);
const vec2 workGroupsRender = vec2(1.0f, 1.0f);

void main() {
ivec2 pixelCoords = ivec2(gl_GlobalInvocationID.xy);

imageStore(colorimg0, pixelCoords, vec4(1.0));
}
I'm on an AMD RX 580, using Garuda Linux (basically Arch)
3 replies