Skip to content

SPIRV and WGSL support detection #522

@fridenmf

Description

@fridenmf

Two questions regarding checking support for SPIRV and WGSL:

  1. How can I check that using a WGPUShaderSourceSPIRV in WGPUShaderModuleDescriptor is supported? Or can I expect all implementations to implement this? I see no feature flags for this in webgpu.h and wgpu-native panics when trying to use it. Dawn works, but it seems like adding a feature flag for this would make it more safer to use.
  2. I'm assuming that WGPUShaderSourceWGSL is always is supported by implementations when running in a browser, is this also true when running natively on desktop with something like Dawn or wgpu-native?

EDIT: Todo list

  • > I did NOT rename WGPUFeatureName, WGPUSupportedFeatures, and WGPULimits because they're used for both Adapter and Device, so picking one could be confusing. That can be a separate step anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    extensibilityAdding features without breaking API changes

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions