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

17 lines
306 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
struct Out {
float4 pos;
};
struct tint_symbol_1 {
float4 pos [[position]] [[invariant]];
};
vertex tint_symbol_1 tint_symbol() {
Out const tint_symbol_2 = {};
tint_symbol_1 const tint_symbol_3 = {.pos=tint_symbol_2.pos};
return tint_symbol_3;
}