Skip to content

[DirectX] Resource analysis results should not have duplicate resources #105143

@bogner

Description

@bogner

When we have an array of resources, we can end up with several places where we dx.op.CreateHandle/dx.handle.fromBinding from a single binding. In this case, we need to make sure that DXILResourceAnalysis doesn't report extra bindings. This means we need to replace the simple MapVector for the analysis result with a data structure that better represents what we need.

See https://godbolt.org/z/cn9rzKfzj for an example of the bindings DXC generates from an array of buffers.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions