Skip to content

[HLSL] Use explicit padding instead of target layout types in __cblayout #147352

@bogner

Description

@bogner

When creating __cblayout types we should use explicit padding instead of target layout types, as per llvm/wg-hlsl#311. This will force us to use explicit conversions between objects in cbuffers and those with C++ layouts, should clean up a number of issues where the backend fails to clean up layout differences, and avoids us needing to duplicate a lot of logic between the DirectX and SPIR-V backends.

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Support

Type

No type

Projects

Status

Active

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions