KhronosGroup / KhronosGroup/Vulkan-ValidationLayers
Validate if BDA is a read/write only buffer
Open
Incomplete
- Dominant language
- C++
- Stars
- 1k
- Forks
- 504
- Avg merge
- 11h 35m
- Merged PRs (30d)
- 224
Description
From https://gitlab.freedesktop.org/mesa/mesa/-/issues/12819
Check if the BDA is being accessed from a ReadOnly/WriteOnly buffer and give a validation warning
Example -
```
layout(buffer_reference) readonly buffer VertexBuffer {
float vertices[];
};
layout(set = 0, binding = 0, scalar) uniform foo {
VertexBuffer vb;
};
void main() {
vb.vertices[1] = vb.vertices[0];
// some operation here to stop copy propagation
vb.vertices[2] = vb.vertices[1];
}
```
Contributor guide
Assessment
This issue has not been assessed yet.