yum-mirror/slang

Making it easier to work with shaders

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

Tim FoleyAdd an attribute to disable the overlapping-bindings warning (#1005)9f33d3d4e

master
334 B17 linesraw
1// overlapping-bindings.slang
2
3//DIAGNOSTIC_TEST:SIMPLE:-target hlsl
4
5// Two parameters with the same `register:
6
7Texture2D a : register(t0);
8
9Texture2D b : register(t0);
10
11// Parameters marked to ignore overlap:
12
13[allow("overlapping-bindings")]
14Texture2D c : register(t1);
15
16[allow("overlapping-bindings")]
17Texture2D d : register(t1);