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
258 B12 linesraw
1// shared-modifier.hlsl
2//TEST:REFLECTION:-profile ps_5_0 -target hlsl -no-codegen
3
4// Confirm that we expose the `shared` modifier in reflection data.
5
6Texture2D t;
7shared SamplerState s;
8
9float4 main(float2 uv : UV) : SV_Target
10{
11	return t.Sample(s, uv);
12}