Skip to content

Array of Sampler2D's loses register attribute when converting to hlsl #7246

@gyxos-logan

Description

@gyxos-logan

Using slangc -target hlsl, specifying a Sampler2D array

Sampler2D tex[16] : register(t0, space2) : register(s0, space2);

Loses the register attributes when splitting from the combined texture+sampler into separate variables

Texture2D<float4 >  tex_texture_0[int(16)];
SamplerState  tex_sampler_0[int(16)];

Expected

Texture2D<float4 >  tex_texture_0[int(16)] : register(t0, space2);
SamplerState  tex_sampler_0[int(16)] : register(s0, space2);

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions