这是indexloc提供的服务,不要输入任何密码
Skip to content

Compat: Disallow textureLoad() of depth textures in WGSL via validation. #4512

@greggman

Description

@greggman

The initial proposal is below. This is a place to discuss

7. Disallow textureLoad() of depth textures in WGSL via validation.

Justification: OpenGL ES does not support texelFetch() of a depth texture.

Alternatives considered:

  • bind to an RGBA8 binding point and use shader ALU
    • pros:
      • compatibility, performance
    • cons:
      • untried (does this work?)
  • use texture() with quantized texture coordinates; massage the results
    • pros:
      • compatibility, performance
    • cons:
      • untried
      • complexity of implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU APIapi resolvedResolved - waiting for a change to the API specificationcompatWebGPU Compatibility ModewgslWebGPU Shading Language Issueswgsl resolvedResolved - waiting for a change to the WGSL specification

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions