Skip to content

Commit dec12d9

Browse files
author
joaosaffran
committed
improve tests
1 parent 356c4b7 commit dec12d9

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; RUN: not opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s 2>&1 | FileCheck %s
2+
; CHECK: error: register UAV (space=0, register=2) is overlapping with register UAV (space=0, register=0), verify your root signature definition
3+
4+
define void @CSMain() "hlsl.shader"="compute" {
5+
entry:
6+
ret void
7+
}
8+
9+
; DescriptorTable(UAV(u0, numDescriptors=unbounded), visibility = SHADER_VISIBILITY_ALL), UAV(u2, space=0, visibility=SHADER_VISIBILITY_ALL))
10+
!dx.rootsignatures = !{!0}
11+
!0 = !{ptr @CSMain, !1, i32 2}
12+
!1 = !{!2, !4}
13+
!2 = !{!"DescriptorTable", i32 2, !3}
14+
!3 = !{!"UAV", i32 -1, i32 0, i32 0, i32 -1, i32 4}
15+
!4 = !{!"RootUAV", i32 0, i32 2, i32 0, i32 4}

0 commit comments

Comments
 (0)