KhronosGroup / KhronosGroup/glslang

OpName is wrong when using GL_EXT_descriptor_heap

Open
#4,254 0 comments 0 reactions 1 assignee Claimed by @arcady-lunarg View on GitHub
Descriptor Heaps
Dominant language
C++
Stars
3.6k
Forks
989
Avg merge
1d 2h
Merged PRs (30d)
31

Description

If I go

```glsl
layout(descriptor_heap) buffer A { uint a; } heap_a[];
void main() {
heap_a[0].a = 0;
}
```

I get

```
pName %resource_heap "resource_heap"
```

which is not helpful at all

If you go

```
layout(descriptor_heap) buffer A { uint a; } heap_a[];
layout(descriptor_heap) buffer B { uint b; } heap_b[];
void main() {
heap_a[0].a = 0;
heap_b[1].b = 0;
}
```

It shares the same `OpUntypedVariableKHR` (and name) making it not possible to figure out which variable caused the issue.

Even if you argue "this should be done in ShaderDebugInfo", sure, but going `-gVS` currently provides no information

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.