Skip to content

[HLSL] vector<->array conversions are allowed as inout parameters if explicitly casted #131938

@spall

Description

@spall

This is allowed in DXC:
vector<->array conversions where we can create a cxvalue, but only from an explicit cast:
https://godbolt.org/z/ezzjj6dWo
but in clang produces the following error
cannot bind non-lvalue argument (float4)V to inout paramemter

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Support

Type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions