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 B15 linesraw
1//TEST:REFLECTION:-profile ps_5_0 -target hlsl -no-codegen
2
3// Confirm that we register a shader as sample-rate when
4// it declares (not necessarly *uses*) a `sample` qualified input
5
6struct PSInput
7{
8    float4 extra : EXTRA;
9	sample float4 color : COLOR;
10};
11
12float4 main(PSInput input) : SV_Target
13{
14	return input.extra + input.color;
15}