-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
HLSLHLSL Language SupportHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
HLSL allows explicit casting between layout compatible types. For example:
struct XYZ {
float X, Y, Z;
};
XYZ xyz = ...;
float3 f3 = (float3)xyz;
xyz = (XYZ)f3;
struct S {
int i;
float f;
};
struct OtherS {
int i;
float f;
};
S s =...;
OtherS o = (OtherS)s;Related: #100614
Metadata
Metadata
Assignees
Labels
HLSLHLSL Language SupportHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Type
Projects
Status
Closed