yum-mirror/slang

Making it easier to work with shaders

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

Ellie HermaszewskaVarying inputs and outputs for wgsl (#5669)7aaf7009e

master
250 B16 linesraw
1//TEST:SIMPLE(filecheck=WGSL): -target wgsl -stage fragment -entry main
2
3//WGSL-DAG: @builtin(frag_depth)
4//WGSL-DAG: @fragment
5
6struct Out 
7{
8    float depth : SV_Depth;
9};
10
11Out main() 
12{
13    Out output;
14    output.depth = 1.0;
15    return output;
16}