KhronosGroup / KhronosGroup/Vulkan-ValidationLayers

Validate if BDA is a read/write only buffer

Open
#9,664 0 comments 0 reactions 1 assignee Claimed by @spencer-lunarg View on GitHub
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

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.