microsoft / hlsl-specs

HLSL Specifications
MIT License
125 stars 34 forks source link

[Language] Specify bitfields #310

Open llvm-beanz opened 3 months ago

llvm-beanz commented 3 months ago

Which document does this relate to? Language

Describe the issue you see with the spec https://github.com/microsoft/DirectXShaderCompiler/issues/5258 references bitfields not being handled correctly in the FlattenedTypeIterator which impacts how "Flattened" casts are implemented.

We have a related issue to specify explicit casts which includes flattened casts (https://github.com/microsoft/hlsl-specs/issues/299), we also need to specify bitfield layout and behavior in casts.

Additional context See C++ Bit-fields