KhronosGroup / KhronosGroup/GLSL
Disallow whole array operations for runtime-sized arrays?
Open
@gnl21 is already working on this.
Since Sep 1, 2021.
Resolving Inside Khronos
- Dominant language
- JavaScript
- Stars
- 458
- Forks
- 114
- Avg merge
- 4m
- Merged PRs (30d)
- 1
Description
There currently is no language in the GLSL spec disallowing whole array operations for runtime-sized arrays. For an example, see https://github.com/KhronosGroup/glslang/issues/2733.
SPIR-V virtually disallows these by disallowing an OpLoad of OpTypeRuntimearray. I presume that disallowing these in GLSL was an oversight.
Shall we proceed with creating a change to GLSL to disallow these?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.