Struct output shenanigans
This commit is contained in:
15
test/struct_output_vertex.ink
Normal file
15
test/struct_output_vertex.ink
Normal file
@@ -0,0 +1,15 @@
|
||||
VS_Out :: struct {
|
||||
pos : float4 @outposition;
|
||||
}
|
||||
|
||||
vertex main :: (pos : float3 @position) -> VS_Out {
|
||||
vs_out : VS_Out;
|
||||
|
||||
vs_out.pos = float4(pos, 1.0);
|
||||
|
||||
return vs_out;
|
||||
}
|
||||
|
||||
pixel main :: (ps_in : VS_Out) -> float4 @target {
|
||||
return float4(1, 1, 1, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user