Skip to content

Naga specific WGSL extensions #4410

@teoxoy

Description

@teoxoy

All of these have their own Capabilities therefore the validator is already aware of those non-standard items but I think we should still have our own set of extensions so that it's obvious when a shader uses those items.

Introducing a strict_extensions: bool field for the Parser will limit the extensions to only those defined by the spec (for now only f16).

Relevant errors should be different based on the strict_extensions field. Example: using an f64 type with strict_extensions: true should yield an error that informs the user that there is no such type; on the other hand, if strict_extensions were false, the error should inform the user that the naga_ext_f64 extension is required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions