mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-28 04:48:58 +02:00
[vk] NullDescriptor guard
This commit is contained in:
parent
8bf8e08e36
commit
07094078ab
1 changed files with 6 additions and 0 deletions
|
|
@ -556,6 +556,12 @@ void BufferCacheRuntime::BindVertexBuffer(u32 index, VkBuffer buffer, u32 offset
|
||||||
if (index >= device.GetMaxVertexInputBindings()) {
|
if (index >= device.GetMaxVertexInputBindings()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!device.HasNullDescriptor() && buffer == VK_NULL_HANDLE) {
|
||||||
|
ReserveNullBuffer();
|
||||||
|
buffer = *null_buffer;
|
||||||
|
offset = 0;
|
||||||
|
size = VK_WHOLE_SIZE;
|
||||||
|
}
|
||||||
// Use BindVertexBuffers2EXT only if EDS1 is supported AND VIDS is not active
|
// Use BindVertexBuffers2EXT only if EDS1 is supported AND VIDS is not active
|
||||||
// When VIDS is active, the pipeline doesn't declare VERTEX_INPUT_BINDING_STRIDE as dynamic
|
// When VIDS is active, the pipeline doesn't declare VERTEX_INPUT_BINDING_STRIDE as dynamic
|
||||||
if (device.IsExtExtendedDynamicStateSupported() && !device.IsExtVertexInputDynamicStateSupported()) {
|
if (device.IsExtExtendedDynamicStateSupported() && !device.IsExtVertexInputDynamicStateSupported()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue