mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-06 14:09:58 +00:00
If this get builded i'll be able to actually, truly and sincely fly
This commit is contained in:
committed by
Caio Oliveira
parent
d026d17805
commit
1d1e352a73
@@ -7,6 +7,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <limits>
|
||||||
#include <span>
|
#include <span>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@@ -598,7 +599,7 @@ void BufferCacheRuntime::BindVertexBuffer(u32 index, VkBuffer buffer, u32 offset
|
|||||||
ReserveNullBuffer();
|
ReserveNullBuffer();
|
||||||
buffer = *null_buffer;
|
buffer = *null_buffer;
|
||||||
offset = 0;
|
offset = 0;
|
||||||
size = VK_WHOLE_SIZE;
|
size = std::numeric_limits<u32>::max();
|
||||||
}
|
}
|
||||||
// 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
|
||||||
@@ -750,9 +751,11 @@ vk::Buffer BufferCacheRuntime::CreateNullBuffer() {
|
|||||||
|
|
||||||
scheduler.RequestOutsideRenderPassOperationContext();
|
scheduler.RequestOutsideRenderPassOperationContext();
|
||||||
|
|
||||||
} // namespace Vulkan
|
|
||||||
scheduler.Record([buffer = *ret](vk::CommandBuffer cmdbuf) {
|
scheduler.Record([buffer = *ret](vk::CommandBuffer cmdbuf) {
|
||||||
cmdbuf.FillBuffer(buffer, 0, VK_WHOLE_SIZE, 0);
|
cmdbuf.FillBuffer(buffer, 0, VK_WHOLE_SIZE, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace Vulkan
|
||||||
|
|||||||
Reference in New Issue
Block a user