Skip to content

[HLSL] Array by-value casting #100609

@llvm-beanz

Description

@llvm-beanz

In HLSL arrays generally don't decay to pointers, and explicit array casts historically were by-value casts of the elements. There is some incongruence between existing HLSL implementations. FXC and DXC's SPIR-V code generation do by-value conversions and DXC's DXIL code generation does a pointer conversion.

See DXC on Compiler Explorer and FXC on Shader Playground

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.clang: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