Skip to content

Please generate OpName in descriptor scalar replacement optimization #2802

@ehsannas

Description

@ehsannas

When flattening array of resources, the newly generated objects currently don't have a name. This causes a crash when reflection is done in DXC (microsoft/DirectXShaderCompiler#2413).

The naming convention used in FXC is by appending [x] to the array name. e.g.

Texture2D<float>	Tex[4] : register(t0);

compiled to:

// Name                                 Type  Format         Dim      HLSL Bind  Count
// ------------------------------ ---------- ------- ----------- -------------- ------
// Tex[0]                            texture   float          2d             t0      1 
// Tex[1]                            texture   float          2d             t1      1 
// Tex[2]                            texture   float          2d             t2      1 
// Tex[3]                            texture   float          2d             t3      1 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions