yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Ellie HermaszewskaLegalise out parameters for vertex shaders on metal (#6943)405d438bf

master
382 B11 linesraw
1//TEST:SIMPLE(filecheck=METAL): -target metal -stage vertex -entry vertexMain
2//TEST:SIMPLE(filecheck=METALLIB): -target metallib -stage vertex -entry vertexMain
3
4//METAL: [position]]
5//METALLIB: @vertexMain
6
7// Vertex Shader which writes to position
8void vertexMain(out float4 position : SV_Position, in uint vertexID : SV_VertexID)
9{
10    position = float4(0.6, 0.1, 0.6, 0.33);
11}