https://github.com/shader-slang/slang
Raw File
Tip revision: 394983d61efa2bf99ba96aa68a47df8927a8a634 authored by Tim Foley on 23 January 2020, 20:24:13 UTC
Fix a bug in handling explicit register space bindings (#1175)
Tip revision: 394983d
overlapping-bindings.slang
// overlapping-bindings.slang

//DIAGNOSTIC_TEST:SIMPLE:-target hlsl

// Two parameters with the same `register:

Texture2D a : register(t0);

Texture2D b : register(t0);

// Parameters marked to ignore overlap:

[allow("overlapping-bindings")]
Texture2D c : register(t1);

[allow("overlapping-bindings")]
Texture2D d : register(t1);
back to top