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

Document WebGPU edge case behaviour of bitfield operations #33

Open
dneto0 opened this issue Jun 22, 2019 · 0 comments
Open

Document WebGPU edge case behaviour of bitfield operations #33

dneto0 opened this issue Jun 22, 2019 · 0 comments

Comments

@dneto0
Copy link
Contributor

dneto0 commented Jun 22, 2019

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant