dawn-cmake/test/shader_io/fragment_input_builtins.wgs...

12 lines
332 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
fragment void tint_symbol(float4 position [[position]], bool front_facing [[front_facing]], uint sample_index [[sample_id]], uint sample_mask [[sample_mask]]) {
if (front_facing) {
float4 const foo = position;
uint const bar = (sample_index + sample_mask);
}
return;
}