KhronosGroup / KhronosGroup/SPIRV-Cross
[SPIR-V] Function call discards 'readonly' access qualifier
- Dominant language
- GLSL
- Stars
- 2.5k
- Forks
- 713
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 16
Description
Can someone tell me how to fix this?Thank you!
repo shader:
```
#version 320 es
precision mediump float;
precision highp int;
layout(binding = 0, std430) readonly buffer type_StructuredBuffer_v4float
{
highp vec4 _m0[];
} View_PrimitiveSceneData;
if (((floatBitsToUint(View_PrimitiveSceneData._m0[in_var_PRIMITIVE_ID * 41u].x) & 2u) != 0u) && (View.View_IndirectLightingCacheShowFlag > 0.0))
```
compiled with mali offline compiler v6.4.0.
It returns an error message: Function call discards 'readonly' access qualifier.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the provided GLSL snippet with Mali offline compiler v6.4.0 and obtain the corresponding SPIR-V; the issue names no repository file or test. Trace how the readonly access qualifier is represented during function-call handling, then verify the behavior against a minimal regression case with an expected diagnostic or preserved qualifier.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100