mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-19 01:17:04 +02:00
[meta] fix some compilation errors (#2741)
Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2741
This commit is contained in:
parent
2f88463203
commit
94ca83a6ca
4 changed files with 8 additions and 7 deletions
|
|
@ -574,7 +574,8 @@ if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ENABLE_WEB_SERVICE OR ENABLE_QT_UPDATE_CHECKER)
|
if (ENABLE_WEB_SERVICE OR ENABLE_QT_UPDATE_CHECKER)
|
||||||
find_package(httplib)
|
# Workaround: httplib will kill itself if you attempt to do a find_package propagation
|
||||||
|
# find_package(httplib CONFIG)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ENABLE_WEB_SERVICE)
|
if (ENABLE_WEB_SERVICE)
|
||||||
|
|
|
||||||
3
externals/cpmfile.json
vendored
3
externals/cpmfile.json
vendored
|
|
@ -29,7 +29,8 @@
|
||||||
"repo": "yhirose/cpp-httplib",
|
"repo": "yhirose/cpp-httplib",
|
||||||
"tag": "v%VERSION%",
|
"tag": "v%VERSION%",
|
||||||
"hash": "b364500f76e2ecb0fe21b032d831272e3f1dfeea71af74e325f8fc4ce9dcdb3c941b97a5b422bdeafb9facd058597b90f8bfc284fb9afe3c33fefa15dd5a010b",
|
"hash": "b364500f76e2ecb0fe21b032d831272e3f1dfeea71af74e325f8fc4ce9dcdb3c941b97a5b422bdeafb9facd058597b90f8bfc284fb9afe3c33fefa15dd5a010b",
|
||||||
"git_version": "0.26.0"
|
"git_version": "0.26.0",
|
||||||
|
"find_args": "MODULE GLOBAL"
|
||||||
},
|
},
|
||||||
"cpp-jwt": {
|
"cpp-jwt": {
|
||||||
"version": "1.4",
|
"version": "1.4",
|
||||||
|
|
|
||||||
|
|
@ -341,7 +341,7 @@ BufferCacheRuntime::BufferCacheRuntime(const Device& device_, MemoryAllocator& m
|
||||||
device.GetUniformBufferAlignment() //check if the device has it
|
device.GetUniformBufferAlignment() //check if the device has it
|
||||||
);
|
);
|
||||||
// add the ability to change the size in settings in future
|
// add the ability to change the size in settings in future
|
||||||
uniform_ring.Init(device, memory_allocator, 8 * 1024 * 1024 /* 8 MiB */, ubo_align ? ubo_align : 256);
|
uniform_ring.Init(memory_allocator, 8 * 1024 * 1024 /* 8 MiB */, ubo_align ? ubo_align : 256);
|
||||||
quad_array_index_buffer = std::make_shared<QuadArrayIndexBuffer>(device_, memory_allocator_,
|
quad_array_index_buffer = std::make_shared<QuadArrayIndexBuffer>(device_, memory_allocator_,
|
||||||
scheduler_, staging_pool_);
|
scheduler_, staging_pool_);
|
||||||
quad_strip_index_buffer = std::make_shared<QuadStripIndexBuffer>(device_, memory_allocator_,
|
quad_strip_index_buffer = std::make_shared<QuadStripIndexBuffer>(device_, memory_allocator_,
|
||||||
|
|
@ -360,9 +360,8 @@ void BufferCacheRuntime::FreeDeferredStagingBuffer(StagingBufferRef& ref) {
|
||||||
staging_pool.FreeDeferred(ref);
|
staging_pool.FreeDeferred(ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BufferCacheRuntime::UniformRing::Init(const Device& device,
|
void BufferCacheRuntime::UniformRing::Init(MemoryAllocator& alloc, u32 alignment, u64 bytes)
|
||||||
MemoryAllocator& alloc,
|
{
|
||||||
u64 bytes, u32 alignment) {
|
|
||||||
for (size_t i = 0; i < NUM_FRAMES; ++i) {
|
for (size_t i = 0; i < NUM_FRAMES; ++i) {
|
||||||
VkBufferCreateInfo ci{
|
VkBufferCreateInfo ci{
|
||||||
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ private:
|
||||||
u32 align = 256;
|
u32 align = 256;
|
||||||
size_t current_frame = 0;
|
size_t current_frame = 0;
|
||||||
|
|
||||||
void Init(const Device& device, MemoryAllocator& alloc, u64 bytes, u32 alignment);
|
void Init(MemoryAllocator& alloc, u32 alignment, u64 bytes);
|
||||||
void BeginFrame() {
|
void BeginFrame() {
|
||||||
current_frame = (current_frame + 1) % NUM_FRAMES;
|
current_frame = (current_frame + 1) % NUM_FRAMES;
|
||||||
head = 0;
|
head = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue