2020-06-24 05:45:29 +01:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(local_size_x = 128) in;
|
|
|
|
|
|
|
|
layout(binding = 0)
|
|
|
|
writeonly uniform imageBuffer dst;
|
|
|
|
|
|
|
|
layout(push_constant)
|
|
|
|
uniform u_info_t {
|
|
|
|
vec4 clear_value;
|
|
|
|
ivec2 dst_offset;
|
|
|
|
ivec2 dst_extent;
|
|
|
|
} u_info;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
int thread_id = int(gl_GlobalInvocationID.x);
|
2020-11-05 15:52:02 +00:00
|
|
|
|
2020-06-24 05:45:29 +01:00
|
|
|
if (thread_id < u_info.dst_extent.x)
|
|
|
|
imageStore(dst, u_info.dst_offset.x + thread_id, u_info.clear_value);
|
2020-11-05 15:52:02 +00:00
|
|
|
}
|