dawn-cmake/test/shader_io/vertex_output_builtins_stru...

17 lines
372 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
struct VertexOutputs {
float4 position;
};
struct tint_symbol_1 {
float4 position [[position]];
};
vertex tint_symbol_1 tint_symbol() {
VertexOutputs const tint_symbol_2 = {.position=float4(1.0f, 2.0f, 3.0f, 4.0f)};
tint_symbol_1 const tint_symbol_3 = {.position=tint_symbol_2.position};
return tint_symbol_3;
}