Skip to content

Commit

Permalink
Fix build error in arm32
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Aug 23, 2024
1 parent 568589c commit 9a8cb5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/vulkan/rendering_context_driver_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ VkAllocationCallbacks *RenderingContextDriverVulkan::get_allocation_callbacks(Vk
void *p_user_data,
size_t size,
size_t alignment,
VkSystemAllocationScope allocation_scope) -> void * {
VkSystemAllocationScope allocation_scope) VKAPI_PTR -> void * {
static constexpr size_t tracking_data_size = 32;
VkTrackedObjectType type = static_cast<VkTrackedObjectType>(*reinterpret_cast<VkTrackedObjectType *>(p_user_data));

Expand Down Expand Up @@ -274,7 +274,7 @@ VkAllocationCallbacks *RenderingContextDriverVulkan::get_allocation_callbacks(Vk
void *p_original,
size_t size,
size_t alignment,
VkSystemAllocationScope allocation_scope) -> void * {
VkSystemAllocationScope allocation_scope) VKAPI_PTR -> void * {
if (p_original == nullptr) {
VkObjectType type = static_cast<VkObjectType>(*reinterpret_cast<uint32_t *>(p_user_data));
return get_allocation_callbacks(type)->pfnAllocation(p_user_data, size, alignment, allocation_scope);
Expand Down Expand Up @@ -305,7 +305,7 @@ VkAllocationCallbacks *RenderingContextDriverVulkan::get_allocation_callbacks(Vk
// Free function
[](
void *p_user_data,
void *p_memory) {
void *p_memory) VKAPI_PTR {
if (!p_memory) {
return;
}
Expand All @@ -326,13 +326,13 @@ VkAllocationCallbacks *RenderingContextDriverVulkan::get_allocation_callbacks(Vk
void *p_user_data,
size_t size,
VkInternalAllocationType allocation_type,
VkSystemAllocationScope allocation_scope) {
VkSystemAllocationScope allocation_scope) VKAPI_PTR {
},
[](
void *p_user_data,
size_t size,
VkInternalAllocationType allocation_type,
VkSystemAllocationScope allocation_scope) {
VkSystemAllocationScope allocation_scope) VKAPI_PTR {
},
};

Expand Down

0 comments on commit 9a8cb5c

Please sign in to comment.