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

array sizes must be bounded so they are indexible by 32-bit signed int #47

Open
dneto0 opened this issue Nov 27, 2019 · 0 comments
Open

Comments

@dneto0
Copy link
Contributor

dneto0 commented Nov 27, 2019

SPIR-V access chain indices are treated as signed.
So an array size must be bounded so that you can actually index the entire array.
Since the max int width is 32-bits, the max num elements should be 2^31.

dneto0 added a commit to dneto0/SPIRV-Tools that referenced this issue Nov 29, 2019
This makes it easier to clamp indices for robust-buffer-access
behaviour.

See gpuweb/spirv-execution-env#47
dneto0 added a commit to dneto0/SPIRV-Tools that referenced this issue Nov 29, 2019
This makes it easier to clamp indices for robust-buffer-access
behaviour.

See gpuweb/spirv-execution-env#47
dneto0 added a commit to KhronosGroup/SPIRV-Tools that referenced this issue Dec 3, 2019
This makes it easier to clamp indices for robust-buffer-access
behaviour.

See gpuweb/spirv-execution-env#47
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