diff options
Diffstat (limited to 'runtime/src/predicate_reduce.comp')
| -rw-r--r-- | runtime/src/predicate_reduce.comp | 6 |
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 | ||
| 3 | layout(local_size_x=1) in; | ||
| 4 | layout(set=0,binding=0,std430) buffer Words { uint words[]; } data; | ||
| 5 | layout(push_constant) uniform Index { uint base; } index; | ||
| 6 | void main() { data.words[index.base+2] = data.words[index.base] | data.words[index.base+1]; } | ||