diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/diagnostics/gh-38-fs.hlsl | 9 | ||||
| -rw-r--r-- | tests/diagnostics/gh-38-vs.hlsl | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/diagnostics/gh-38-fs.hlsl b/tests/diagnostics/gh-38-fs.hlsl new file mode 100644 index 000000000..61c8381e4 --- /dev/null +++ b/tests/diagnostics/gh-38-fs.hlsl @@ -0,0 +1,9 @@ +//TEST_IGNORE_FILE: + +// Companion file to `gh-38-fs.hlsl` + +Texture2D overlappingB : register(t0); + +Texture2D conflicting : register(t2); + +float4 main() : SV_Target { return 0; } diff --git a/tests/diagnostics/gh-38-vs.hlsl b/tests/diagnostics/gh-38-vs.hlsl new file mode 100644 index 000000000..7b23efdea --- /dev/null +++ b/tests/diagnostics/gh-38-vs.hlsl @@ -0,0 +1,9 @@ +//TEST:SIMPLE: -target dxbc-assembly -profile vs_5_0 -entry main tests/diagnostics/gh-38-fs.hlsl -profile ps_5_0 -entry main + +// Ensure that we catch errors with overlapping or conflicting parameter bindings. + +Texture2D overlappingA : register(t0); + +Texture2D conflicting : register(t1); + +float4 main() : SV_Position { return 0; } |
