Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scalar layout compatability trait #298

Merged

Conversation

llvm-beanz
Copy link
Collaborator

This adds language for determining if two types are scalar layout compatible by defining a scalarized representation which is a sequence of types that can then be compared.

The scalar representations of types will be used in several contexts throughout HLSL including:

  • "Flattened" type casting
  • Scalarized initiailization lists
  • Defining additional type traits (homogeneous types)

This adds language for determining if two types are _scalar layout compatible_ by defining a _scalarized representation_ which is a sequence of types that can then be compared.

The scalar representations of types will be used in several contexts throughout HLSL including:
* "Flattened" type casting
* Scalarized initiailization lists
* Defining additional type traits (homogeneous types)
@llvm-beanz llvm-beanz merged commit d9cea8e into microsoft:main Aug 6, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants