Skip to content

Commit b7ccfd3

Browse files
committed
Remove accidental declaration of buffer block
Giving an instance name to a buffer_reference declaration also declares a block with that type, which does not seem to have been the intention.
1 parent 2ab57ee commit b7ccfd3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

shaders/multi_draw_indirect/cull_address.comp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#version 460
22

3-
/* Copyright (c) 2021 Holochip Corporation
3+
/* Copyright (c) 2025 Holochip Corporation
44
*
55
* SPDX-License-Identifier: Apache-2.0
66
*
@@ -60,8 +60,7 @@ global_uniform;
6060
layout(std430, buffer_reference) buffer CommandBuffer
6161
{
6262
VkDrawIndexedIndirectCommand commands[];
63-
}
64-
command_buffer;
63+
};
6564

6665
layout(set = 0, binding = 4) buffer Addresses
6766
{
@@ -108,4 +107,4 @@ void main()
108107
bool is_visible = check_is_visible(global_uniform.proj_view, vec3(model.x, model.y, model.z), model.r);
109108

110109
addresses.command_buffer.commands[id].instanceCount = is_visible ? 1 : 0;
111-
}
110+
}
-580 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)