dawn-cmake/test/shader_io/compute_input_builtins.wgsl...

9 lines
434 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
kernel void tint_symbol(uint3 local_invocation_id [[thread_position_in_threadgroup]], uint local_invocation_index [[thread_index_in_threadgroup]], uint3 global_invocation_id [[thread_position_in_grid]], uint3 workgroup_id [[threadgroup_position_in_grid]]) {
uint const foo = (((local_invocation_id.x + local_invocation_index) + global_invocation_id.x) + workgroup_id.x);
return;
}