Skip to content

[HLSL][SPIRV] Pass the resource name to the backend, and use it. #143141

Open
@s-perron

Description

@s-perron

The current implementation for HLSL resources does not pass the name of the resource to the SPIR-B backend. Instead the SPIR-V back will try to create a unique name for each resource. However, this can fail and cause collisions. The ideal solution is to pass the name of the resource to the backend, and use that name.

The DXIL backend recently started doing this (https://godbolt.org/z/Tc1Yx3j15). The name is part of the call to @llvm.dx.resource.handlefrombinding. We can do the same for SPIR-V.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions