18 lines · plain
1; RUN: opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s 2; "This is a valid root signature with a texture/typed buffer resource"3 4@TB.str = private unnamed_addr constant [3 x i8] c"TB\00", align 15 6define void @CSMain() "hlsl.shader"="compute" {7entry:8 %TB = tail call target("dx.Texture", <4 x float>, 1, 0, 0, 4) @llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, ptr nonnull @TB.str)9 ret void10}11 12!dx.rootsignatures = !{!0}13 14!0 = !{ptr @CSMain, !1, i32 2}15!1 = !{!3}16!3 = !{!"DescriptorTable", i32 0, !4}17!4 = !{!"UAV", i32 1, i32 0, i32 0, i32 -1, i32 0}18