@@ -43,30 +43,12 @@ declare target("dx.CBuffer", target("dx.Layout", %__cblayout_CB, 4, 0)) @llvm.dx
43
43
; Function Attrs: mustprogress nofree noinline norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none)
44
44
define void @CSMain () local_unnamed_addr #1 {
45
45
entry:
46
- %CB.cb_h.i.i = tail call target ("dx.CBuffer" , target ("dx.Layout" , %__cblayout_CB , 4 , 0 )) @llvm.dx.resource.handlefrombinding.tdx.CBuffer_tdx.Layout_s___cblayout_CBs_4_0tt (i32 1 , i32 3 , i32 1 , i32 0 , i1 false , ptr nonnull @CB.str )
47
- store target ("dx.CBuffer" , target ("dx.Layout" , %__cblayout_CB , 4 , 0 )) %CB.cb_h.i.i , ptr @CB.cb , align 4
48
- %0 = tail call target ("dx.RawBuffer" , i32 , 0 , 0 ) @llvm.dx.resource.handlefrombinding.tdx.RawBuffer_i32_0_0t (i32 0 , i32 0 , i32 1 , i32 0 , i1 false , ptr nonnull @.str )
49
- %1 = tail call target ("dx.RawBuffer" , i32 , 1 , 0 ) @llvm.dx.resource.handlefrombinding.tdx.RawBuffer_i32_1_0t (i32 0 , i32 0 , i32 1 , i32 0 , i1 false , ptr nonnull @.str.2 )
50
- %2 = tail call target ("dx.RawBuffer" , float , 1 , 0 ) @llvm.dx.resource.handlefrombinding.tdx.RawBuffer_f32_1_0t (i32 0 , i32 -2 , i32 1 , i32 0 , i1 false , ptr nonnull @.str.4 )
51
- %3 = tail call target ("dx.RawBuffer" , float , 1 , 0 ) @llvm.dx.resource.handlefrombinding.tdx.RawBuffer_f32_1_0t (i32 0 , i32 2 , i32 1 , i32 0 , i1 false , ptr nonnull @.str.6 )
52
- %4 = call target ("dx.RawBuffer" , float , 1 , 0 ) @llvm.dx.resource.handlefrombinding.tdx.RawBuffer_f32_1_0t (i32 0 , i32 1 , i32 1 , i32 0 , i1 false , ptr @.str.10 )
53
- %5 = call { float , float , float , float } @llvm.dx.resource.load.cbufferrow.4.f32.f32.f32.f32.tdx.CBuffer_tdx.Layout_s___cblayout_CBs_4_0tt (target ("dx.CBuffer" , target ("dx.Layout" , %__cblayout_CB , 4 , 0 )) %CB.cb_h.i.i , i32 0 )
54
- %6 = extractvalue { float , float , float , float } %5 , 0
55
- %7 = call { i32 , i1 } @llvm.dx.resource.load.rawbuffer.i32.tdx.RawBuffer_i32_0_0t (target ("dx.RawBuffer" , i32 , 0 , 0 ) %0 , i32 0 , i32 0 )
56
- %8 = extractvalue { i32 , i1 } %7 , 0
57
- %conv.i = sitofp i32 %8 to float
58
- %add.i = fadd reassoc nnan ninf nsz arcp afn float %6 , %conv.i
59
- %9 = call { float , i1 } @llvm.dx.resource.load.rawbuffer.f32.tdx.RawBuffer_f32_1_0t (target ("dx.RawBuffer" , float , 1 , 0 ) %2 , i32 0 , i32 0 )
60
- %10 = extractvalue { float , i1 } %9 , 0
61
- %add2.i = fadd reassoc nnan ninf nsz arcp afn float %add.i , %10
62
- %11 = call { float , i1 } @llvm.dx.resource.load.rawbuffer.f32.tdx.RawBuffer_f32_1_0t (target ("dx.RawBuffer" , float , 1 , 0 ) %3 , i32 0 , i32 0 )
63
- %12 = extractvalue { float , i1 } %11 , 0
64
- %add4.i = fadd reassoc nnan ninf nsz arcp afn float %add2.i , %12
65
- %13 = call { float , i1 } @llvm.dx.resource.load.rawbuffer.f32.tdx.RawBuffer_f32_1_0t (target ("dx.RawBuffer" , float , 1 , 0 ) %4 , i32 0 , i32 0 )
66
- %14 = extractvalue { float , i1 } %13 , 0
67
- %add6.i = fadd reassoc nnan ninf nsz arcp afn float %add4.i , %14
68
- %conv7.i = fptosi float %add6.i to i32
69
- call void @llvm.dx.resource.store.rawbuffer.tdx.RawBuffer_i32_1_0t.i32 (target ("dx.RawBuffer" , i32 , 1 , 0 ) %1 , i32 0 , i32 0 , i32 %conv7.i )
46
+
47
+ %CB = tail call target ("dx.CBuffer" , target ("dx.Layout" , %__cblayout_CB , 4 , 0 )) @llvm.dx.resource.handlefrombinding (i32 1 , i32 3 , i32 1 , i32 0 , i1 false , ptr nonnull @CB.str )
48
+ %Sampler = call target ("dx.Sampler" , 0 ) @llvm.dx.resource.handlefrombinding (i32 2 , i32 3 , i32 1 , i32 0 , i1 false , ptr nonnull @Smp.str )
49
+ %SB = tail call target ("dx.RawBuffer" , i32 , 0 , 0 ) @llvm.dx.resource.handlefrombinding.tdx.RawBuffer_i32_0_0t (i32 0 , i32 0 , i32 1 , i32 0 , i1 false , ptr nonnull @SB.str )
50
+ %RWB = tail call target ("dx.RawBuffer" , float , 1 , 0 , 0 ) @llvm.dx.resource.handlefrombinding.tdx.RawBuffer_f32_1_0_0t (i32 0 , i32 0 , i32 1 , i32 0 , i1 false , ptr nonnull @RWB.str )
51
+
70
52
ret void
71
53
}
72
54
0 commit comments