Sitelet https://github.com/gpuweb/gpuweb/issues/4519
Skip to content

Compat: Disallow textureSampleLevel/textureSampleCompareLevel with texture_depth_2d_array #4519

Description

@teoxoy

Disallow textureSampleLevel/textureSampleCompareLevel with texture_depth_2d_array since textureLod/textureLodOffset are missing in GLSL ES 3.1.

GL_EXT_texture_shadow_lod exists but looking at reports over on https://opengles.gpuinfo.org, very few GLSL ES 3.1 implementations support it.

There is also one workaround for supporting textureSampleLevel by translating it to textureGrad but the level passed must be 0.

For more context see: #4266 (comment) & #4513.

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

    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