summaryrefslogtreecommitdiffstats
path: root/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_clear_image1darr_u.comp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_clear_image1darr_u.comp')
-rw-r--r--src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_clear_image1darr_u.comp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_clear_image1darr_u.comp b/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_clear_image1darr_u.comp
new file mode 100644
index 00000000..24dcdf87
--- /dev/null
+++ b/src/libs/dxvk-native-1.9.2a/src/dxvk/shaders/dxvk_clear_image1darr_u.comp
@@ -0,0 +1,26 @@
+#version 450
+
+layout(
+ local_size_x = 64,
+ local_size_y = 1,
+ local_size_z = 1) in;
+
+layout(binding = 0)
+writeonly uniform uimage1DArray dst;
+
+layout(push_constant)
+uniform u_info_t {
+ uvec4 clear_value;
+ ivec4 dst_offset;
+ ivec4 dst_extent;
+} u_info;
+
+void main() {
+ ivec3 thread_id = ivec3(gl_GlobalInvocationID);
+
+ if (thread_id.x < u_info.dst_extent.x) {
+ imageStore(dst,
+ ivec2(u_info.dst_offset.x + thread_id.x, thread_id.y),
+ u_info.clear_value);
+ }
+} \ No newline at end of file