brintos

brintos / llvm-project-archived public Read only

0
0
Text · 651 B · 9b5c5d6 Raw
19 lines · plain
1; RUN: not opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s 2>&1 | FileCheck %s2; CHECK: error: Sampler register 3 in space 2 does not have a binding in the Root Signature 3 4@Smp.str = private unnamed_addr constant [4 x i8] c"Smp\00", align 15 6 7define void @CSMain() "hlsl.shader"="compute" {8entry:9  %Sampler = call target("dx.Sampler", 0) @llvm.dx.resource.handlefrombinding(i32 2, i32 3, i32 1, i32 0, ptr nonnull @Smp.str)10  ret void11}12 13!dx.rootsignatures = !{!0}14 15!0 = !{ptr @CSMain, !1, i32 2}16!1 = !{!2}17!2 = !{!"DescriptorTable", i32 0, !3}18!3 = !{!"Sampler", i32 1, i32 42, i32 0, i32 -1, i32 0}19