Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Document WebGPU edge case behaviour of bitfield operations #33

@dneto0

Description

@dneto0

From gpuweb/gpuweb#288

Implementation behaviour edge cases for OpBitFieldSExtract, OpBitFieldUExtract and OpBitFieldInsert are:

  • Clamp Offset to [0,31] (make the bit width in bounds)
  • Clamp Count such that clamped_offset + count is within [0,31].
  • When inserting, only the clamped_count least significant bits are used.
  • When extracting, only the clamped_count least significant bits are returned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions