upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/predicate_reduce.comp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/predicate_reduce.comp')
-rw-r--r--runtime/src/predicate_reduce.comp6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/src/predicate_reduce.comp b/runtime/src/predicate_reduce.comp
new file mode 100644
index 000000000..86b07d67f
--- /dev/null
+++ b/runtime/src/predicate_reduce.comp
@@ -0,0 +1,6 @@
1// Synthetic internal shader: one invocation captures a D3D12 64-bit predicate as a Vulkan condition.
2#version 450
3layout(local_size_x=1) in;
4layout(set=0,binding=0,std430) buffer Words { uint words[]; } data;
5layout(push_constant) uniform Index { uint base; } index;
6void main() { data.words[index.base+2] = data.words[index.base] | data.words[index.base+1]; }