Got something working. Need to test and verify I'm getting the data from the compute kernel
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
layout(location = 0) in vec2 tex_coords;
|
||||
layout(location = 0) out vec4 f_color;
|
||||
layout(set = 0, binding = 0) uniform sampler2D tex;
|
||||
layout(set = 0, binding = 1, rgba8ui) readonly uniform uimage2D img;
|
||||
void main() {
|
||||
f_color = texture(tex, tex_coords);
|
||||
}
|
||||
@@ -4,4 +4,8 @@ layout(location = 0) out vec2 tex_coords;
|
||||
void main() {
|
||||
gl_Position = vec4(position, 0.0, 1.0);
|
||||
tex_coords = position;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user