-
Notifications
You must be signed in to change notification settings - Fork 13.7k
[DirectX] Update resource type names in DXIL metadata to include element type #140937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3a10a5c
f4072fc
4250363
e6331bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,22 +11,22 @@ define void @test() { | |
; Buffer<float4> | ||
%float4 = call target("dx.TypedBuffer", <4 x float>, 0, 0, 0) | ||
@llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, i1 false, ptr @A.str) | ||
; CHECK: %TypedBuffer = type { <4 x float> } | ||
; CHECK: %"Buffer<float4>" = type { <4 x float> } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you explain the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The quotes are there exactly because the '<''>' characters. |
||
|
||
; Buffer<int> | ||
%int = call target("dx.TypedBuffer", i32, 0, 0, 1) | ||
@llvm.dx.resource.handlefrombinding(i32 0, i32 1, i32 1, i32 0, i1 false, ptr null) | ||
; CHECK: %TypedBuffer.0 = type { i32 } | ||
; CHECK: %"Buffer<int32_t>" = type { i32 } | ||
|
||
; Buffer<uint3> | ||
%uint3 = call target("dx.TypedBuffer", <3 x i32>, 0, 0, 0) | ||
@llvm.dx.resource.handlefrombinding(i32 0, i32 2, i32 1, i32 0, i1 false, ptr null) | ||
; CHECK: %TypedBuffer.1 = type { <3 x i32> } | ||
; CHECK: %"Buffer<uint32_t3>" = type { <3 x i32> } | ||
|
||
; StructuredBuffer<S> | ||
%struct0 = call target("dx.RawBuffer", %struct.S, 0, 0) | ||
@llvm.dx.resource.handlefrombinding(i32 0, i32 10, i32 1, i32 0, i1 true, ptr @SB.str) | ||
; CHECK: %StructuredBuffer = type { %struct.S } | ||
; CHECK: %"StructuredBuffer<struct.S>" = type { %struct.S } | ||
|
||
; ByteAddressBuffer | ||
%byteaddr = call target("dx.RawBuffer", i8, 0, 0) | ||
|
@@ -36,10 +36,10 @@ define void @test() { | |
ret void | ||
} | ||
|
||
; CHECK: @[[T0:.*]] = external constant %TypedBuffer | ||
; CHECK-NEXT: @[[T1:.*]] = external constant %TypedBuffer.0 | ||
; CHECK-NEXT: @[[T2:.*]] = external constant %TypedBuffer.1 | ||
; CHECK-NEXT: @[[S0:.*]] = external constant %StructuredBuffer | ||
; CHECK: @[[T0:.*]] = external constant %"Buffer<float4>" | ||
; CHECK-NEXT: @[[T1:.*]] = external constant %"Buffer<int32_t>" | ||
; CHECK-NEXT: @[[T2:.*]] = external constant %"Buffer<uint32_t3>" | ||
; CHECK-NEXT: @[[S0:.*]] = external constant %"StructuredBuffer<struct.S>" | ||
; CHECK-NEXT: @[[B0:.*]] = external constant %ByteAddressBuffer | ||
|
||
; CHECK: !{i32 0, ptr @[[T0]], !"A" | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you have a test covering both branches here? I'm not exactly sure what's happening when ET isn't invalid or what the nominal flow is