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
307 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 `SV_SampleIndex` as an input.
5
6struct PSInput
7{
8	float4 color : COLOR;
9	uint sampleIndex : SV_SampleIndex;	
10};
11
12float4 main(PSInput input) : SV_Target
13{
14	return input.color;
15}