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
338 B19 linesraw
1//TEST:REFLECTION:-profile ps_4_0  -target hlsl -no-codegen
2
3// Confirm that basic reflection info can be output
4
5float4 use(float4 val) { return val; };
6float4 use(Texture2D t, SamplerState s) { return t.Sample(s, 0.0); }
7
8Texture2D 		t;
9SamplerState 	s;
10
11cbuffer C
12{
13	float c;
14}
15
16float4 main() : SV_Target
17{
18	return use(t,s) + use(c);
19}