brintos

brintos / llvm-project-archived public Read only

0
0
Text · 697 B · 0fdba27 Raw
21 lines · plain
1; RUN: opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s 2; We have a valid root signature, this should compile successfully3 4define void @CSMain() "hlsl.shader"="compute" {5entry:6  ret void7}8 9!dx.rootsignatures = !{!0}10 11!0 = !{ptr @CSMain, !1, i32 2}12!1 = !{!2, !3, !5, !7, !9}13!2 = !{!"RootCBV", i32 0, i32 3, i32 1, i32 4}14!9 = !{!"RootConstants", i32 0, i32 2, i32 0, i32 4}15!3 = !{!"DescriptorTable", i32 0, !4}16!4 = !{!"SRV", i32 1, i32 0, i32 0, i32 -1, i32 0}17!5 = !{!"DescriptorTable", i32 0, !6}18!6 = !{!"Sampler", i32 5, i32 3, i32 2, i32 -1, i32 0}19!7 = !{!"DescriptorTable", i32 0, !8}20!8 = !{!"UAV", i32 -1, i32 0, i32 0, i32 -1, i32 2}21