mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-08 17:00:47 +00:00
[vulkan] Fix up test function api
Whil I can't automatically run the tests in windows builds, at least I can make sure they build (and run individual ones by hand as necessary).
This commit is contained in:
parent
aa72f1dc31
commit
a6a273bb07
1 changed files with 14 additions and 14 deletions
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
void *stage_memory;
|
void *stage_memory;
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkMapMemory (VkDevice device, VkDeviceMemory memory,
|
vkMapMemory (VkDevice device, VkDeviceMemory memory,
|
||||||
VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags,
|
VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags,
|
||||||
void **data)
|
void **data)
|
||||||
|
@ -25,14 +25,14 @@ vkMapMemory (VkDevice device, VkDeviceMemory memory,
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkBindBufferMemory (VkDevice device, VkBuffer buffer, VkDeviceMemory memory,
|
vkBindBufferMemory (VkDevice device, VkBuffer buffer, VkDeviceMemory memory,
|
||||||
VkDeviceSize offset)
|
VkDeviceSize offset)
|
||||||
{
|
{
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkCreateBuffer (VkDevice device, const VkBufferCreateInfo *cinfo,
|
vkCreateBuffer (VkDevice device, const VkBufferCreateInfo *cinfo,
|
||||||
const VkAllocationCallbacks *allocator, VkBuffer *buffer)
|
const VkAllocationCallbacks *allocator, VkBuffer *buffer)
|
||||||
{
|
{
|
||||||
|
@ -40,14 +40,14 @@ vkCreateBuffer (VkDevice device, const VkBufferCreateInfo *cinfo,
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void VKAPI_CALL
|
||||||
vkGetBufferMemoryRequirements (VkDevice device, VkBuffer buffer,
|
vkGetBufferMemoryRequirements (VkDevice device, VkBuffer buffer,
|
||||||
VkMemoryRequirements *requirements)
|
VkMemoryRequirements *requirements)
|
||||||
{
|
{
|
||||||
memset (requirements, 0, sizeof (*requirements));
|
memset (requirements, 0, sizeof (*requirements));
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkAllocateCommandBuffers (VkDevice device,
|
vkAllocateCommandBuffers (VkDevice device,
|
||||||
const VkCommandBufferAllocateInfo *info,
|
const VkCommandBufferAllocateInfo *info,
|
||||||
VkCommandBuffer *buffers)
|
VkCommandBuffer *buffers)
|
||||||
|
@ -60,7 +60,7 @@ vkAllocateCommandBuffers (VkDevice device,
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkCreateFence (VkDevice device, const VkFenceCreateInfo *info,
|
vkCreateFence (VkDevice device, const VkFenceCreateInfo *info,
|
||||||
const VkAllocationCallbacks *allocator, VkFence *fence)
|
const VkAllocationCallbacks *allocator, VkFence *fence)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +72,7 @@ vkCreateFence (VkDevice device, const VkFenceCreateInfo *info,
|
||||||
|
|
||||||
int wait_count = 0;
|
int wait_count = 0;
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkWaitForFences (VkDevice device, uint32_t fenceCount, const VkFence *fences,
|
vkWaitForFences (VkDevice device, uint32_t fenceCount, const VkFence *fences,
|
||||||
VkBool32 waitAll, uint64_t timeout)
|
VkBool32 waitAll, uint64_t timeout)
|
||||||
{
|
{
|
||||||
|
@ -86,7 +86,7 @@ vkWaitForFences (VkDevice device, uint32_t fenceCount, const VkFence *fences,
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkResetFences (VkDevice device, uint32_t fenceCount, const VkFence *fences)
|
vkResetFences (VkDevice device, uint32_t fenceCount, const VkFence *fences)
|
||||||
{
|
{
|
||||||
for (uint32_t i = 0; i < fenceCount; i++) {
|
for (uint32_t i = 0; i < fenceCount; i++) {
|
||||||
|
@ -96,40 +96,40 @@ vkResetFences (VkDevice device, uint32_t fenceCount, const VkFence *fences)
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkGetFenceStatus (VkDevice device, VkFence fence)
|
vkGetFenceStatus (VkDevice device, VkFence fence)
|
||||||
{
|
{
|
||||||
int *f = (int *) (intptr_t) fence;
|
int *f = (int *) (intptr_t) fence;
|
||||||
return *f ? VK_SUCCESS : VK_NOT_READY;
|
return *f ? VK_SUCCESS : VK_NOT_READY;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkResetCommandBuffer (VkCommandBuffer buffer, VkCommandBufferResetFlags flags)
|
vkResetCommandBuffer (VkCommandBuffer buffer, VkCommandBufferResetFlags flags)
|
||||||
{
|
{
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkBeginCommandBuffer (VkCommandBuffer buffer,
|
vkBeginCommandBuffer (VkCommandBuffer buffer,
|
||||||
const VkCommandBufferBeginInfo *info)
|
const VkCommandBufferBeginInfo *info)
|
||||||
{
|
{
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkEndCommandBuffer (VkCommandBuffer buffer)
|
vkEndCommandBuffer (VkCommandBuffer buffer)
|
||||||
{
|
{
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkFlushMappedMemoryRanges (VkDevice device, uint32_t count,
|
vkFlushMappedMemoryRanges (VkDevice device, uint32_t count,
|
||||||
const VkMappedMemoryRange *ranges)
|
const VkMappedMemoryRange *ranges)
|
||||||
{
|
{
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult VKAPI_CALL
|
||||||
vkQueueSubmit (VkQueue queue, uint32_t count, const VkSubmitInfo *submits,
|
vkQueueSubmit (VkQueue queue, uint32_t count, const VkSubmitInfo *submits,
|
||||||
VkFence fence)
|
VkFence fence)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue