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

OOB behaviour for storage textures #1895

Description

@ben-clayton

The spec currently does not define the behaviour of out-of-bound arguments to textureLoad() and textureStore(), which is important for robustness.

Coordinates will almost certainly need to be either clamped, or have the operation be conditional.

We may also need to consider bounds checking other parameters (I've seen bad behaviour of loads and stores where the level is OOB, but this was on old console hardware).

Similar topics: #1722, #1649

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

    wgslWebGPU Shading Language Issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions