yum-mirror/slang

Making it easier to work with shaders

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

Alexey PanteleevSupport for querying which parameters are used in emitted code (#2239)69cb6e8f3

master
525 B21 linesraw
1//TEST:REFLECTION:-stage fragment -target glsl -no-codegen
2//TEST:REFLECTION:-stage fragment -target hlsl -no-codegen -profile sm_5_0
3//TEST:REFLECTION:-stage fragment -target hlsl -no-codegen -profile sm_5_1
4
5// Confirm that we do parameter binding correctly
6// when we have both a parameter block *and* user-defined
7// resource parameters that both need automatic
8// binding allocation.
9
10struct Helper
11{
12	Texture2D t;
13	SamplerState s;	
14};
15
16ParameterBlock<Helper> a;
17
18Texture2D b;
19
20float4 main() : SV_target
21{ return 0.0; }