Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Relax the out-of-bounds specification #1649

@kvark

Description

@kvark

This is a follow-up from #1580 (comment)
Currently, WGSL spec only describes the clamping behavior. Instead, it should follow WebGPU group decision to allow any of the following behaviors:

  • discard the whole draw call
  • behave like RBA, which means reading can return anything within the buffer (not within the array), or zeroes, or other stuff
  • behave like D3D, which means reading always returns zeroes, and writing is ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwgslWebGPU 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