Skip to content

Bounds checks on textureLoad unneeded in Metal after 2.2? #8221

@jimblandy

Description

@jimblandy

Starting in the Metal Shading Language Specification 2.2, the section on Texture Functions describes the behavior of out-of-bounds read and write calls to textures. The behavior described seems to be compatible with WGSL's requirements, meaning that it is not necessary for wgpu to have Naga inject bounds checks on these operations.

In version 2.2 of the spec, the language appears on p. 142 of the PDF.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions