Vulkan/CommandPool: Fix linking error
Former-commit-id: 89988bc96174b5531a7ed1478cf8486ef6c50289
This commit is contained in:
parent
e536f1c962
commit
358f0ea87b
|
|
@ -20,7 +20,7 @@ namespace Nz
|
||||||
|
|
||||||
using CommandPoolHandle = ObjectHandle<CommandPool>;
|
using CommandPoolHandle = ObjectHandle<CommandPool>;
|
||||||
|
|
||||||
class CommandPool : public DeviceObject<CommandPool, VkCommandPool, VkCommandPoolCreateInfo>, public HandledObject<CommandPool>
|
class NAZARA_VULKAN_API CommandPool : public DeviceObject<CommandPool, VkCommandPool, VkCommandPoolCreateInfo>, public HandledObject<CommandPool>
|
||||||
{
|
{
|
||||||
friend DeviceObject;
|
friend DeviceObject;
|
||||||
|
|
||||||
|
|
@ -42,8 +42,8 @@ namespace Nz
|
||||||
CommandPool& operator=(CommandPool&&) = delete;
|
CommandPool& operator=(CommandPool&&) = delete;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static VkResult CreateHelper(Device& device, const VkCommandPoolCreateInfo* createInfo, const VkAllocationCallbacks* allocator, VkCommandPool* handle);
|
static inline VkResult CreateHelper(Device& device, const VkCommandPoolCreateInfo* createInfo, const VkAllocationCallbacks* allocator, VkCommandPool* handle);
|
||||||
static void DestroyHelper(Device& device, VkCommandPool handle, const VkAllocationCallbacks* allocator);
|
static inline void DestroyHelper(Device& device, VkCommandPool handle, const VkAllocationCallbacks* allocator);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,12 +38,12 @@ namespace Nz
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
VkResult CommandPool::CreateHelper(Device& device, const VkCommandPoolCreateInfo* createInfo, const VkAllocationCallbacks* allocator, VkCommandPool* handle)
|
inline VkResult CommandPool::CreateHelper(Device& device, const VkCommandPoolCreateInfo* createInfo, const VkAllocationCallbacks* allocator, VkCommandPool* handle)
|
||||||
{
|
{
|
||||||
return device.vkCreateCommandPool(device, createInfo, allocator, handle);
|
return device.vkCreateCommandPool(device, createInfo, allocator, handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommandPool::DestroyHelper(Device& device, VkCommandPool handle, const VkAllocationCallbacks* allocator)
|
inline void CommandPool::DestroyHelper(Device& device, VkCommandPool handle, const VkAllocationCallbacks* allocator)
|
||||||
{
|
{
|
||||||
return device.vkDestroyCommandPool(device, handle, allocator);
|
return device.vkDestroyCommandPool(device, handle, allocator);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue