Skip to content

[Feature Request] Support all the GLSL unpack intrinsics in HLSL (including unpackUnorm4x8) #7835

@jmoguill

Description

@jmoguill

Is your feature request related to a problem? Please describe.
For example, GLSL provides unpackUnorm4x8.
HLSL's closest equivalent is unpack_u8u32 but this doesn't return normalized result, and returns as uint4 not float4.
Can HLSL support all the same unpack intrinsics as GLSL?
For example, if we're using HLSL with Vulkan, is there a performance tradeoff using HLSL vs GLSL (if we want to use unpackUnorm4x8)? Or can we accomplish same thing (with same performance) via HLSL?

Describe the solution you'd like
Support all the GLSL unpack intrinsics via HLSL

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions