Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
This repository was archived by the owner on May 29, 2026. It is now read-only.

Type coercion in SDSL #1

Description

@ykafia

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    rfcRequest for comment

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions