Skip to content

[HLSL] Type trait for layout compatibility #100614

@llvm-beanz

Description

@llvm-beanz

We need to define a type trait for layout compatibility. HLSL allows explicit casting between types if they have the same member layouts. We should expose this as a type trait builtin so that we can use it from source as well.

Related: #75676

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions