yum-mirror/slang

Making it easier to work with shaders

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

Yong HeAdd option to preserve shader parameter declaration in output SPIRV. (#4344)fa8c11ebe

master
398 B19 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -preserve-params -O0
2
3// Test that -preserve-params option preserves shader paraemter declarations in the output spirv code.
4
5// CHECK-DAG: OpDecorate %{{.*}} Binding 0
6
7// CHECK-DAG: OpDecorate %{{.*}} Binding 1
8
9RWStructuredBuffer<float> buffer;
10
11struct TT
12{
13    Texture2D tex;    
14}
15[numthreads(1, 1, 1)]
16void f(ConstantBuffer<TT> t)
17{
18    return;
19}