Skip to content

[HLSL][SPIR-V] Fix backend layout calculation #168401

@Keenuts

Description

@Keenuts

PushConstants require a specific layout rule. The previous way to emit this layout information was to emit a target-specific type with the field offsets as operands. This construct is being phased out in favor of explicit padding in the struct definition (see #147352)

This means the current PushConstant implementation will emit wrong offsets for some structs, and we should
re-visit this once we figure out the E2E path to correctly handle this layout information.

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language SupportSPIR-VSPIR-V language support

Type

Projects

Status

Planning

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions