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

Type coercion in SDSL #1

Open
ykafia opened this issue Jan 5, 2024 · 0 comments
Open

Type coercion in SDSL #1

ykafia opened this issue Jan 5, 2024 · 0 comments
Labels
rfc Request for comment

Comments

@ykafia
Copy link
Collaborator

ykafia commented Jan 5, 2024

Since the SDSL language is being rewritten one question to ask is how do we handle type coercion and inference.

details to note about SPIR-V :

  • The built-in types of SPIR-V are the same as GLSL (bool, int, uint, float, double), in order to add (half, short, ushort, byte, sbyte, long, ulong) we should use SPIR-V extensions.
  • SPIR-V has some instruction for bit conversions, everything starting by OpConvert, which gives us the power to convert anything to anything conserving bit patterns.
  • Type coercion is going to be a little bit more difficult.
@ykafia ykafia added the rfc Request for comment label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfc Request for comment
Projects
None yet
Development

No branches or pull requests

1 participant