2018-06-06 12:15:33 +02:00
|
|
|
/* Automatically generated from Vulkan vk.xml; DO NOT EDIT!
|
|
|
|
*
|
|
|
|
* This file is generated from Vulkan vk.xml file covered
|
|
|
|
* by the following copyright and permission notice:
|
|
|
|
*
|
|
|
|
* Copyright (c) 2015-2018 The Khronos Group Inc.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*
|
|
|
|
* ---- Exceptions to the Apache 2.0 License: ----
|
|
|
|
*
|
|
|
|
* As an exception, if you use this Software to generate code and portions of
|
|
|
|
* this Software are embedded into the generated code as a result, you may
|
|
|
|
* redistribute such product without providing attribution as would otherwise
|
|
|
|
* be required by Sections 4(a), 4(b) and 4(d) of the License.
|
|
|
|
*
|
|
|
|
* In addition, if you combine or link code generated by this Software with
|
|
|
|
* software that is licensed under the GPLv2 or the LGPL v2.0 or 2.1
|
|
|
|
* ("`Combined Software`") and if a court of competent jurisdiction determines
|
|
|
|
* that the patent provision (Section 3), the indemnity provision (Section 9)
|
|
|
|
* or other Section of the License conflicts with the conditions of the
|
|
|
|
* applicable GPL or LGPL license, you may retroactively and prospectively
|
|
|
|
* choose to deem waived or otherwise exclude such Section(s) of the License,
|
|
|
|
* but only in their entirety and only with respect to the Combined Software.
|
|
|
|
*
|
|
|
|
*/
|
2018-03-01 16:37:04 +01:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "wine/port.h"
|
|
|
|
|
|
|
|
#include "vulkan_private.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(vulkan);
|
|
|
|
|
2018-03-09 17:48:46 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
2018-07-13 10:55:36 +02:00
|
|
|
static inline void convert_VkAcquireNextImageInfoKHR_win_to_host(const VkAcquireNextImageInfoKHR *in, VkAcquireNextImageInfoKHR_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->swapchain = in->swapchain;
|
|
|
|
out->timeout = in->timeout;
|
|
|
|
out->semaphore = in->semaphore;
|
|
|
|
out->fence = in->fence;
|
|
|
|
out->deviceMask = in->deviceMask;
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:53 +01:00
|
|
|
static inline void convert_VkDescriptorSetAllocateInfo_win_to_host(const VkDescriptorSetAllocateInfo *in, VkDescriptorSetAllocateInfo_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->descriptorPool = in->descriptorPool;
|
|
|
|
out->descriptorSetCount = in->descriptorSetCount;
|
|
|
|
out->pSetLayouts = in->pSetLayouts;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkMemoryAllocateInfo_win_to_host(const VkMemoryAllocateInfo *in, VkMemoryAllocateInfo_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->allocationSize = in->allocationSize;
|
|
|
|
out->memoryTypeIndex = in->memoryTypeIndex;
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:56 +01:00
|
|
|
static inline VkCommandBufferInheritanceInfo_host *convert_VkCommandBufferInheritanceInfo_array_win_to_host(const VkCommandBufferInheritanceInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkCommandBufferInheritanceInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].renderPass = in[i].renderPass;
|
|
|
|
out[i].subpass = in[i].subpass;
|
|
|
|
out[i].framebuffer = in[i].framebuffer;
|
|
|
|
out[i].occlusionQueryEnable = in[i].occlusionQueryEnable;
|
|
|
|
out[i].queryFlags = in[i].queryFlags;
|
|
|
|
out[i].pipelineStatistics = in[i].pipelineStatistics;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkCommandBufferInheritanceInfo_array(VkCommandBufferInheritanceInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkCommandBufferBeginInfo_win_to_host(const VkCommandBufferBeginInfo *in, VkCommandBufferBeginInfo_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->flags = in->flags;
|
|
|
|
out->pInheritanceInfo = convert_VkCommandBufferInheritanceInfo_array_win_to_host(in->pInheritanceInfo, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkCommandBufferBeginInfo(VkCommandBufferBeginInfo_host *in)
|
|
|
|
{
|
|
|
|
free_VkCommandBufferInheritanceInfo_array((VkCommandBufferInheritanceInfo_host *)in->pInheritanceInfo, 1);
|
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static inline VkBindAccelerationStructureMemoryInfoNV_host *convert_VkBindAccelerationStructureMemoryInfoNV_array_win_to_host(const VkBindAccelerationStructureMemoryInfoNV *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkBindAccelerationStructureMemoryInfoNV_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].accelerationStructure = in[i].accelerationStructure;
|
|
|
|
out[i].memory = in[i].memory;
|
|
|
|
out[i].memoryOffset = in[i].memoryOffset;
|
|
|
|
out[i].deviceIndexCount = in[i].deviceIndexCount;
|
|
|
|
out[i].pDeviceIndices = in[i].pDeviceIndices;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkBindAccelerationStructureMemoryInfoNV_array(VkBindAccelerationStructureMemoryInfoNV_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static inline VkBindBufferMemoryInfo_host *convert_VkBindBufferMemoryInfo_array_win_to_host(const VkBindBufferMemoryInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkBindBufferMemoryInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].buffer = in[i].buffer;
|
|
|
|
out[i].memory = in[i].memory;
|
|
|
|
out[i].memoryOffset = in[i].memoryOffset;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkBindBufferMemoryInfo_array(VkBindBufferMemoryInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkBindImageMemoryInfo_host *convert_VkBindImageMemoryInfo_array_win_to_host(const VkBindImageMemoryInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkBindImageMemoryInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].image = in[i].image;
|
|
|
|
out[i].memory = in[i].memory;
|
|
|
|
out[i].memoryOffset = in[i].memoryOffset;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkBindImageMemoryInfo_array(VkBindImageMemoryInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static inline void convert_VkConditionalRenderingBeginInfoEXT_win_to_host(const VkConditionalRenderingBeginInfoEXT *in, VkConditionalRenderingBeginInfoEXT_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->buffer = in->buffer;
|
|
|
|
out->offset = in->offset;
|
|
|
|
out->flags = in->flags;
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:56 +01:00
|
|
|
static inline void convert_VkRenderPassBeginInfo_win_to_host(const VkRenderPassBeginInfo *in, VkRenderPassBeginInfo_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->renderPass = in->renderPass;
|
|
|
|
out->framebuffer = in->framebuffer;
|
|
|
|
out->renderArea = in->renderArea;
|
|
|
|
out->clearValueCount = in->clearValueCount;
|
|
|
|
out->pClearValues = in->pClearValues;
|
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static inline void convert_VkGeometryTrianglesNV_win_to_host(const VkGeometryTrianglesNV *in, VkGeometryTrianglesNV_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->vertexData = in->vertexData;
|
|
|
|
out->vertexOffset = in->vertexOffset;
|
|
|
|
out->vertexCount = in->vertexCount;
|
|
|
|
out->vertexStride = in->vertexStride;
|
|
|
|
out->vertexFormat = in->vertexFormat;
|
|
|
|
out->indexData = in->indexData;
|
|
|
|
out->indexOffset = in->indexOffset;
|
|
|
|
out->indexCount = in->indexCount;
|
|
|
|
out->indexType = in->indexType;
|
|
|
|
out->transformData = in->transformData;
|
|
|
|
out->transformOffset = in->transformOffset;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkGeometryAABBNV_win_to_host(const VkGeometryAABBNV *in, VkGeometryAABBNV_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->aabbData = in->aabbData;
|
|
|
|
out->numAABBs = in->numAABBs;
|
|
|
|
out->stride = in->stride;
|
|
|
|
out->offset = in->offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkGeometryDataNV_win_to_host(const VkGeometryDataNV *in, VkGeometryDataNV_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
convert_VkGeometryTrianglesNV_win_to_host(&in->triangles, &out->triangles);
|
|
|
|
convert_VkGeometryAABBNV_win_to_host(&in->aabbs, &out->aabbs);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkGeometryNV_host *convert_VkGeometryNV_array_win_to_host(const VkGeometryNV *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkGeometryNV_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].geometryType = in[i].geometryType;
|
|
|
|
convert_VkGeometryDataNV_win_to_host(&in[i].geometry, &out[i].geometry);
|
|
|
|
out[i].flags = in[i].flags;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkGeometryNV_array(VkGeometryNV_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkAccelerationStructureInfoNV_win_to_host(const VkAccelerationStructureInfoNV *in, VkAccelerationStructureInfoNV_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->type = in->type;
|
|
|
|
out->flags = in->flags;
|
|
|
|
out->instanceCount = in->instanceCount;
|
|
|
|
out->geometryCount = in->geometryCount;
|
|
|
|
out->pGeometries = convert_VkGeometryNV_array_win_to_host(in->pGeometries, in->geometryCount);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkAccelerationStructureInfoNV(VkAccelerationStructureInfoNV_host *in)
|
|
|
|
{
|
|
|
|
free_VkGeometryNV_array((VkGeometryNV_host *)in->pGeometries, in->geometryCount);
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:56 +01:00
|
|
|
static inline VkBufferCopy_host *convert_VkBufferCopy_array_win_to_host(const VkBufferCopy *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkBufferCopy_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].srcOffset = in[i].srcOffset;
|
|
|
|
out[i].dstOffset = in[i].dstOffset;
|
|
|
|
out[i].size = in[i].size;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkBufferCopy_array(VkBufferCopy_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkBufferImageCopy_host *convert_VkBufferImageCopy_array_win_to_host(const VkBufferImageCopy *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkBufferImageCopy_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].bufferOffset = in[i].bufferOffset;
|
|
|
|
out[i].bufferRowLength = in[i].bufferRowLength;
|
|
|
|
out[i].bufferImageHeight = in[i].bufferImageHeight;
|
|
|
|
out[i].imageSubresource = in[i].imageSubresource;
|
|
|
|
out[i].imageOffset = in[i].imageOffset;
|
|
|
|
out[i].imageExtent = in[i].imageExtent;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkBufferImageCopy_array(VkBufferImageCopy_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkBufferMemoryBarrier_host *convert_VkBufferMemoryBarrier_array_win_to_host(const VkBufferMemoryBarrier *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkBufferMemoryBarrier_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].srcAccessMask = in[i].srcAccessMask;
|
|
|
|
out[i].dstAccessMask = in[i].dstAccessMask;
|
|
|
|
out[i].srcQueueFamilyIndex = in[i].srcQueueFamilyIndex;
|
|
|
|
out[i].dstQueueFamilyIndex = in[i].dstQueueFamilyIndex;
|
|
|
|
out[i].buffer = in[i].buffer;
|
|
|
|
out[i].offset = in[i].offset;
|
|
|
|
out[i].size = in[i].size;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkBufferMemoryBarrier_array(VkBufferMemoryBarrier_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkImageMemoryBarrier_host *convert_VkImageMemoryBarrier_array_win_to_host(const VkImageMemoryBarrier *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkImageMemoryBarrier_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].srcAccessMask = in[i].srcAccessMask;
|
|
|
|
out[i].dstAccessMask = in[i].dstAccessMask;
|
|
|
|
out[i].oldLayout = in[i].oldLayout;
|
|
|
|
out[i].newLayout = in[i].newLayout;
|
|
|
|
out[i].srcQueueFamilyIndex = in[i].srcQueueFamilyIndex;
|
|
|
|
out[i].dstQueueFamilyIndex = in[i].dstQueueFamilyIndex;
|
|
|
|
out[i].image = in[i].image;
|
|
|
|
out[i].subresourceRange = in[i].subresourceRange;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkImageMemoryBarrier_array(VkImageMemoryBarrier_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
2018-03-15 07:39:40 +01:00
|
|
|
static inline VkDescriptorImageInfo_host *convert_VkDescriptorImageInfo_array_win_to_host(const VkDescriptorImageInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkDescriptorImageInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sampler = in[i].sampler;
|
|
|
|
out[i].imageView = in[i].imageView;
|
|
|
|
out[i].imageLayout = in[i].imageLayout;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkDescriptorImageInfo_array(VkDescriptorImageInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkDescriptorBufferInfo_host *convert_VkDescriptorBufferInfo_array_win_to_host(const VkDescriptorBufferInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkDescriptorBufferInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].buffer = in[i].buffer;
|
|
|
|
out[i].offset = in[i].offset;
|
|
|
|
out[i].range = in[i].range;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkDescriptorBufferInfo_array(VkDescriptorBufferInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkWriteDescriptorSet_host *convert_VkWriteDescriptorSet_array_win_to_host(const VkWriteDescriptorSet *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkWriteDescriptorSet_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].dstSet = in[i].dstSet;
|
|
|
|
out[i].dstBinding = in[i].dstBinding;
|
|
|
|
out[i].dstArrayElement = in[i].dstArrayElement;
|
|
|
|
out[i].descriptorCount = in[i].descriptorCount;
|
|
|
|
out[i].descriptorType = in[i].descriptorType;
|
|
|
|
out[i].pImageInfo = convert_VkDescriptorImageInfo_array_win_to_host(in[i].pImageInfo, in[i].descriptorCount);
|
|
|
|
out[i].pBufferInfo = convert_VkDescriptorBufferInfo_array_win_to_host(in[i].pBufferInfo, in[i].descriptorCount);
|
|
|
|
out[i].pTexelBufferView = in[i].pTexelBufferView;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkWriteDescriptorSet_array(VkWriteDescriptorSet_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
free_VkDescriptorImageInfo_array((VkDescriptorImageInfo_host *)in[i].pImageInfo, in[i].descriptorCount);
|
|
|
|
free_VkDescriptorBufferInfo_array((VkDescriptorBufferInfo_host *)in[i].pBufferInfo, in[i].descriptorCount);
|
|
|
|
}
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static inline void convert_VkAccelerationStructureCreateInfoNV_win_to_host(const VkAccelerationStructureCreateInfoNV *in, VkAccelerationStructureCreateInfoNV_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->compactedSize = in->compactedSize;
|
|
|
|
convert_VkAccelerationStructureInfoNV_win_to_host(&in->info, &out->info);
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:53 +01:00
|
|
|
static inline void convert_VkBufferCreateInfo_win_to_host(const VkBufferCreateInfo *in, VkBufferCreateInfo_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->flags = in->flags;
|
|
|
|
out->size = in->size;
|
|
|
|
out->usage = in->usage;
|
|
|
|
out->sharingMode = in->sharingMode;
|
|
|
|
out->queueFamilyIndexCount = in->queueFamilyIndexCount;
|
|
|
|
out->pQueueFamilyIndices = in->pQueueFamilyIndices;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkBufferViewCreateInfo_win_to_host(const VkBufferViewCreateInfo *in, VkBufferViewCreateInfo_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->flags = in->flags;
|
|
|
|
out->buffer = in->buffer;
|
|
|
|
out->format = in->format;
|
|
|
|
out->offset = in->offset;
|
|
|
|
out->range = in->range;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkPipelineShaderStageCreateInfo_win_to_host(const VkPipelineShaderStageCreateInfo *in, VkPipelineShaderStageCreateInfo_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->flags = in->flags;
|
|
|
|
out->stage = in->stage;
|
|
|
|
out->module = in->module;
|
|
|
|
out->pName = in->pName;
|
|
|
|
out->pSpecializationInfo = in->pSpecializationInfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkComputePipelineCreateInfo_host *convert_VkComputePipelineCreateInfo_array_win_to_host(const VkComputePipelineCreateInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkComputePipelineCreateInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].flags = in[i].flags;
|
|
|
|
convert_VkPipelineShaderStageCreateInfo_win_to_host(&in[i].stage, &out[i].stage);
|
|
|
|
out[i].layout = in[i].layout;
|
|
|
|
out[i].basePipelineHandle = in[i].basePipelineHandle;
|
|
|
|
out[i].basePipelineIndex = in[i].basePipelineIndex;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkComputePipelineCreateInfo_array(VkComputePipelineCreateInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static inline void convert_VkDescriptorUpdateTemplateCreateInfo_win_to_host(const VkDescriptorUpdateTemplateCreateInfo *in, VkDescriptorUpdateTemplateCreateInfo_host *out)
|
2018-03-15 07:39:40 +01:00
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->flags = in->flags;
|
|
|
|
out->descriptorUpdateEntryCount = in->descriptorUpdateEntryCount;
|
|
|
|
out->pDescriptorUpdateEntries = in->pDescriptorUpdateEntries;
|
|
|
|
out->templateType = in->templateType;
|
|
|
|
out->descriptorSetLayout = in->descriptorSetLayout;
|
|
|
|
out->pipelineBindPoint = in->pipelineBindPoint;
|
|
|
|
out->pipelineLayout = in->pipelineLayout;
|
|
|
|
out->set = in->set;
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:53 +01:00
|
|
|
static inline void convert_VkFramebufferCreateInfo_win_to_host(const VkFramebufferCreateInfo *in, VkFramebufferCreateInfo_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->flags = in->flags;
|
|
|
|
out->renderPass = in->renderPass;
|
|
|
|
out->attachmentCount = in->attachmentCount;
|
|
|
|
out->pAttachments = in->pAttachments;
|
|
|
|
out->width = in->width;
|
|
|
|
out->height = in->height;
|
|
|
|
out->layers = in->layers;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkPipelineShaderStageCreateInfo_host *convert_VkPipelineShaderStageCreateInfo_array_win_to_host(const VkPipelineShaderStageCreateInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkPipelineShaderStageCreateInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].flags = in[i].flags;
|
|
|
|
out[i].stage = in[i].stage;
|
|
|
|
out[i].module = in[i].module;
|
|
|
|
out[i].pName = in[i].pName;
|
|
|
|
out[i].pSpecializationInfo = in[i].pSpecializationInfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkPipelineShaderStageCreateInfo_array(VkPipelineShaderStageCreateInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkGraphicsPipelineCreateInfo_host *convert_VkGraphicsPipelineCreateInfo_array_win_to_host(const VkGraphicsPipelineCreateInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkGraphicsPipelineCreateInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].flags = in[i].flags;
|
|
|
|
out[i].stageCount = in[i].stageCount;
|
|
|
|
out[i].pStages = convert_VkPipelineShaderStageCreateInfo_array_win_to_host(in[i].pStages, in[i].stageCount);
|
|
|
|
out[i].pVertexInputState = in[i].pVertexInputState;
|
|
|
|
out[i].pInputAssemblyState = in[i].pInputAssemblyState;
|
|
|
|
out[i].pTessellationState = in[i].pTessellationState;
|
|
|
|
out[i].pViewportState = in[i].pViewportState;
|
|
|
|
out[i].pRasterizationState = in[i].pRasterizationState;
|
|
|
|
out[i].pMultisampleState = in[i].pMultisampleState;
|
|
|
|
out[i].pDepthStencilState = in[i].pDepthStencilState;
|
|
|
|
out[i].pColorBlendState = in[i].pColorBlendState;
|
|
|
|
out[i].pDynamicState = in[i].pDynamicState;
|
|
|
|
out[i].layout = in[i].layout;
|
|
|
|
out[i].renderPass = in[i].renderPass;
|
|
|
|
out[i].subpass = in[i].subpass;
|
|
|
|
out[i].basePipelineHandle = in[i].basePipelineHandle;
|
|
|
|
out[i].basePipelineIndex = in[i].basePipelineIndex;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkGraphicsPipelineCreateInfo_array(VkGraphicsPipelineCreateInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
free_VkPipelineShaderStageCreateInfo_array((VkPipelineShaderStageCreateInfo_host *)in[i].pStages, in[i].stageCount);
|
|
|
|
}
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkImageViewCreateInfo_win_to_host(const VkImageViewCreateInfo *in, VkImageViewCreateInfo_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->flags = in->flags;
|
|
|
|
out->image = in->image;
|
|
|
|
out->viewType = in->viewType;
|
|
|
|
out->format = in->format;
|
|
|
|
out->components = in->components;
|
|
|
|
out->subresourceRange = in->subresourceRange;
|
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static inline VkRayTracingPipelineCreateInfoNV_host *convert_VkRayTracingPipelineCreateInfoNV_array_win_to_host(const VkRayTracingPipelineCreateInfoNV *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkRayTracingPipelineCreateInfoNV_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].flags = in[i].flags;
|
|
|
|
out[i].stageCount = in[i].stageCount;
|
|
|
|
out[i].pStages = convert_VkPipelineShaderStageCreateInfo_array_win_to_host(in[i].pStages, in[i].stageCount);
|
|
|
|
out[i].groupCount = in[i].groupCount;
|
|
|
|
out[i].pGroups = in[i].pGroups;
|
|
|
|
out[i].maxRecursionDepth = in[i].maxRecursionDepth;
|
|
|
|
out[i].layout = in[i].layout;
|
|
|
|
out[i].basePipelineHandle = in[i].basePipelineHandle;
|
|
|
|
out[i].basePipelineIndex = in[i].basePipelineIndex;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkRayTracingPipelineCreateInfoNV_array(VkRayTracingPipelineCreateInfoNV_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
free_VkPipelineShaderStageCreateInfo_array((VkPipelineShaderStageCreateInfo_host *)in[i].pStages, in[i].stageCount);
|
|
|
|
}
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
2018-03-24 14:28:05 +01:00
|
|
|
static inline void convert_VkSwapchainCreateInfoKHR_win_to_host(const VkSwapchainCreateInfoKHR *in, VkSwapchainCreateInfoKHR_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->flags = in->flags;
|
|
|
|
out->surface = in->surface;
|
|
|
|
out->minImageCount = in->minImageCount;
|
|
|
|
out->imageFormat = in->imageFormat;
|
|
|
|
out->imageColorSpace = in->imageColorSpace;
|
|
|
|
out->imageExtent = in->imageExtent;
|
|
|
|
out->imageArrayLayers = in->imageArrayLayers;
|
|
|
|
out->imageUsage = in->imageUsage;
|
|
|
|
out->imageSharingMode = in->imageSharingMode;
|
|
|
|
out->queueFamilyIndexCount = in->queueFamilyIndexCount;
|
|
|
|
out->pQueueFamilyIndices = in->pQueueFamilyIndices;
|
|
|
|
out->preTransform = in->preTransform;
|
|
|
|
out->compositeAlpha = in->compositeAlpha;
|
|
|
|
out->presentMode = in->presentMode;
|
|
|
|
out->clipped = in->clipped;
|
|
|
|
out->oldSwapchain = in->oldSwapchain;
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:53 +01:00
|
|
|
static inline VkMappedMemoryRange_host *convert_VkMappedMemoryRange_array_win_to_host(const VkMappedMemoryRange *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkMappedMemoryRange_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].memory = in[i].memory;
|
|
|
|
out[i].offset = in[i].offset;
|
|
|
|
out[i].size = in[i].size;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkMappedMemoryRange_array(VkMappedMemoryRange_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static inline void convert_VkAccelerationStructureMemoryRequirementsInfoNV_win_to_host(const VkAccelerationStructureMemoryRequirementsInfoNV *in, VkAccelerationStructureMemoryRequirementsInfoNV_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->type = in->type;
|
|
|
|
out->accelerationStructure = in->accelerationStructure;
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:53 +01:00
|
|
|
static inline void convert_VkMemoryRequirements_host_to_win(const VkMemoryRequirements_host *in, VkMemoryRequirements *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->size = in->size;
|
|
|
|
out->alignment = in->alignment;
|
|
|
|
out->memoryTypeBits = in->memoryTypeBits;
|
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static inline void convert_VkMemoryRequirements2KHR_win_to_host(const VkMemoryRequirements2KHR *in, VkMemoryRequirements2KHR_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->sType = in->sType;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkMemoryRequirements2KHR_host_to_win(const VkMemoryRequirements2KHR_host *in, VkMemoryRequirements2KHR *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
convert_VkMemoryRequirements_host_to_win(&in->memoryRequirements, &out->memoryRequirements);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static inline void convert_VkBufferMemoryRequirementsInfo2_win_to_host(const VkBufferMemoryRequirementsInfo2 *in, VkBufferMemoryRequirementsInfo2_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->buffer = in->buffer;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkMemoryRequirements2_win_to_host(const VkMemoryRequirements2 *in, VkMemoryRequirements2_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->sType = in->sType;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkMemoryRequirements2_host_to_win(const VkMemoryRequirements2_host *in, VkMemoryRequirements2 *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
convert_VkMemoryRequirements_host_to_win(&in->memoryRequirements, &out->memoryRequirements);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkImageMemoryRequirementsInfo2_win_to_host(const VkImageMemoryRequirementsInfo2 *in, VkImageMemoryRequirementsInfo2_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->image = in->image;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkImageSparseMemoryRequirementsInfo2_win_to_host(const VkImageSparseMemoryRequirementsInfo2 *in, VkImageSparseMemoryRequirementsInfo2_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->image = in->image;
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:53 +01:00
|
|
|
static inline void convert_VkSubresourceLayout_host_to_win(const VkSubresourceLayout_host *in, VkSubresourceLayout *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->offset = in->offset;
|
|
|
|
out->size = in->size;
|
|
|
|
out->rowPitch = in->rowPitch;
|
|
|
|
out->arrayPitch = in->arrayPitch;
|
|
|
|
out->depthPitch = in->depthPitch;
|
|
|
|
}
|
|
|
|
|
2018-03-09 17:48:46 +01:00
|
|
|
static inline void convert_VkImageFormatProperties_host_to_win(const VkImageFormatProperties_host *in, VkImageFormatProperties *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->maxExtent = in->maxExtent;
|
|
|
|
out->maxMipLevels = in->maxMipLevels;
|
|
|
|
out->maxArrayLayers = in->maxArrayLayers;
|
|
|
|
out->sampleCounts = in->sampleCounts;
|
|
|
|
out->maxResourceSize = in->maxResourceSize;
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static inline void convert_VkImageFormatProperties2_win_to_host(const VkImageFormatProperties2 *in, VkImageFormatProperties2_host *out)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->sType = in->sType;
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static inline void convert_VkImageFormatProperties2_host_to_win(const VkImageFormatProperties2_host *in, VkImageFormatProperties2 *out)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
convert_VkImageFormatProperties_host_to_win(&in->imageFormatProperties, &out->imageFormatProperties);
|
|
|
|
}
|
|
|
|
|
2018-03-09 17:48:46 +01:00
|
|
|
static inline void convert_VkMemoryHeap_static_array_host_to_win(const VkMemoryHeap_host *in, VkMemoryHeap *out, uint32_t count)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].size = in[i].size;
|
|
|
|
out[i].flags = in[i].flags;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkPhysicalDeviceMemoryProperties_host_to_win(const VkPhysicalDeviceMemoryProperties_host *in, VkPhysicalDeviceMemoryProperties *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->memoryTypeCount = in->memoryTypeCount;
|
|
|
|
memcpy(out->memoryTypes, in->memoryTypes, VK_MAX_MEMORY_TYPES * sizeof(VkMemoryType));
|
|
|
|
out->memoryHeapCount = in->memoryHeapCount;
|
|
|
|
convert_VkMemoryHeap_static_array_host_to_win(in->memoryHeaps, out->memoryHeaps, VK_MAX_MEMORY_HEAPS);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static inline void convert_VkPhysicalDeviceMemoryProperties2_win_to_host(const VkPhysicalDeviceMemoryProperties2 *in, VkPhysicalDeviceMemoryProperties2_host *out)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->sType = in->sType;
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static inline void convert_VkPhysicalDeviceMemoryProperties2_host_to_win(const VkPhysicalDeviceMemoryProperties2_host *in, VkPhysicalDeviceMemoryProperties2 *out)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
convert_VkPhysicalDeviceMemoryProperties_host_to_win(&in->memoryProperties, &out->memoryProperties);
|
|
|
|
}
|
|
|
|
|
2018-03-09 17:48:46 +01:00
|
|
|
static inline void convert_VkPhysicalDeviceLimits_host_to_win(const VkPhysicalDeviceLimits_host *in, VkPhysicalDeviceLimits *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->maxImageDimension1D = in->maxImageDimension1D;
|
|
|
|
out->maxImageDimension2D = in->maxImageDimension2D;
|
|
|
|
out->maxImageDimension3D = in->maxImageDimension3D;
|
|
|
|
out->maxImageDimensionCube = in->maxImageDimensionCube;
|
|
|
|
out->maxImageArrayLayers = in->maxImageArrayLayers;
|
|
|
|
out->maxTexelBufferElements = in->maxTexelBufferElements;
|
|
|
|
out->maxUniformBufferRange = in->maxUniformBufferRange;
|
|
|
|
out->maxStorageBufferRange = in->maxStorageBufferRange;
|
|
|
|
out->maxPushConstantsSize = in->maxPushConstantsSize;
|
|
|
|
out->maxMemoryAllocationCount = in->maxMemoryAllocationCount;
|
|
|
|
out->maxSamplerAllocationCount = in->maxSamplerAllocationCount;
|
|
|
|
out->bufferImageGranularity = in->bufferImageGranularity;
|
|
|
|
out->sparseAddressSpaceSize = in->sparseAddressSpaceSize;
|
|
|
|
out->maxBoundDescriptorSets = in->maxBoundDescriptorSets;
|
|
|
|
out->maxPerStageDescriptorSamplers = in->maxPerStageDescriptorSamplers;
|
|
|
|
out->maxPerStageDescriptorUniformBuffers = in->maxPerStageDescriptorUniformBuffers;
|
|
|
|
out->maxPerStageDescriptorStorageBuffers = in->maxPerStageDescriptorStorageBuffers;
|
|
|
|
out->maxPerStageDescriptorSampledImages = in->maxPerStageDescriptorSampledImages;
|
|
|
|
out->maxPerStageDescriptorStorageImages = in->maxPerStageDescriptorStorageImages;
|
|
|
|
out->maxPerStageDescriptorInputAttachments = in->maxPerStageDescriptorInputAttachments;
|
|
|
|
out->maxPerStageResources = in->maxPerStageResources;
|
|
|
|
out->maxDescriptorSetSamplers = in->maxDescriptorSetSamplers;
|
|
|
|
out->maxDescriptorSetUniformBuffers = in->maxDescriptorSetUniformBuffers;
|
|
|
|
out->maxDescriptorSetUniformBuffersDynamic = in->maxDescriptorSetUniformBuffersDynamic;
|
|
|
|
out->maxDescriptorSetStorageBuffers = in->maxDescriptorSetStorageBuffers;
|
|
|
|
out->maxDescriptorSetStorageBuffersDynamic = in->maxDescriptorSetStorageBuffersDynamic;
|
|
|
|
out->maxDescriptorSetSampledImages = in->maxDescriptorSetSampledImages;
|
|
|
|
out->maxDescriptorSetStorageImages = in->maxDescriptorSetStorageImages;
|
|
|
|
out->maxDescriptorSetInputAttachments = in->maxDescriptorSetInputAttachments;
|
|
|
|
out->maxVertexInputAttributes = in->maxVertexInputAttributes;
|
|
|
|
out->maxVertexInputBindings = in->maxVertexInputBindings;
|
|
|
|
out->maxVertexInputAttributeOffset = in->maxVertexInputAttributeOffset;
|
|
|
|
out->maxVertexInputBindingStride = in->maxVertexInputBindingStride;
|
|
|
|
out->maxVertexOutputComponents = in->maxVertexOutputComponents;
|
|
|
|
out->maxTessellationGenerationLevel = in->maxTessellationGenerationLevel;
|
|
|
|
out->maxTessellationPatchSize = in->maxTessellationPatchSize;
|
|
|
|
out->maxTessellationControlPerVertexInputComponents = in->maxTessellationControlPerVertexInputComponents;
|
|
|
|
out->maxTessellationControlPerVertexOutputComponents = in->maxTessellationControlPerVertexOutputComponents;
|
|
|
|
out->maxTessellationControlPerPatchOutputComponents = in->maxTessellationControlPerPatchOutputComponents;
|
|
|
|
out->maxTessellationControlTotalOutputComponents = in->maxTessellationControlTotalOutputComponents;
|
|
|
|
out->maxTessellationEvaluationInputComponents = in->maxTessellationEvaluationInputComponents;
|
|
|
|
out->maxTessellationEvaluationOutputComponents = in->maxTessellationEvaluationOutputComponents;
|
|
|
|
out->maxGeometryShaderInvocations = in->maxGeometryShaderInvocations;
|
|
|
|
out->maxGeometryInputComponents = in->maxGeometryInputComponents;
|
|
|
|
out->maxGeometryOutputComponents = in->maxGeometryOutputComponents;
|
|
|
|
out->maxGeometryOutputVertices = in->maxGeometryOutputVertices;
|
|
|
|
out->maxGeometryTotalOutputComponents = in->maxGeometryTotalOutputComponents;
|
|
|
|
out->maxFragmentInputComponents = in->maxFragmentInputComponents;
|
|
|
|
out->maxFragmentOutputAttachments = in->maxFragmentOutputAttachments;
|
|
|
|
out->maxFragmentDualSrcAttachments = in->maxFragmentDualSrcAttachments;
|
|
|
|
out->maxFragmentCombinedOutputResources = in->maxFragmentCombinedOutputResources;
|
|
|
|
out->maxComputeSharedMemorySize = in->maxComputeSharedMemorySize;
|
|
|
|
memcpy(out->maxComputeWorkGroupCount, in->maxComputeWorkGroupCount, 3 * sizeof(uint32_t));
|
|
|
|
out->maxComputeWorkGroupInvocations = in->maxComputeWorkGroupInvocations;
|
|
|
|
memcpy(out->maxComputeWorkGroupSize, in->maxComputeWorkGroupSize, 3 * sizeof(uint32_t));
|
|
|
|
out->subPixelPrecisionBits = in->subPixelPrecisionBits;
|
|
|
|
out->subTexelPrecisionBits = in->subTexelPrecisionBits;
|
|
|
|
out->mipmapPrecisionBits = in->mipmapPrecisionBits;
|
|
|
|
out->maxDrawIndexedIndexValue = in->maxDrawIndexedIndexValue;
|
|
|
|
out->maxDrawIndirectCount = in->maxDrawIndirectCount;
|
|
|
|
out->maxSamplerLodBias = in->maxSamplerLodBias;
|
|
|
|
out->maxSamplerAnisotropy = in->maxSamplerAnisotropy;
|
|
|
|
out->maxViewports = in->maxViewports;
|
|
|
|
memcpy(out->maxViewportDimensions, in->maxViewportDimensions, 2 * sizeof(uint32_t));
|
|
|
|
memcpy(out->viewportBoundsRange, in->viewportBoundsRange, 2 * sizeof(float));
|
|
|
|
out->viewportSubPixelBits = in->viewportSubPixelBits;
|
|
|
|
out->minMemoryMapAlignment = in->minMemoryMapAlignment;
|
|
|
|
out->minTexelBufferOffsetAlignment = in->minTexelBufferOffsetAlignment;
|
|
|
|
out->minUniformBufferOffsetAlignment = in->minUniformBufferOffsetAlignment;
|
|
|
|
out->minStorageBufferOffsetAlignment = in->minStorageBufferOffsetAlignment;
|
|
|
|
out->minTexelOffset = in->minTexelOffset;
|
|
|
|
out->maxTexelOffset = in->maxTexelOffset;
|
|
|
|
out->minTexelGatherOffset = in->minTexelGatherOffset;
|
|
|
|
out->maxTexelGatherOffset = in->maxTexelGatherOffset;
|
|
|
|
out->minInterpolationOffset = in->minInterpolationOffset;
|
|
|
|
out->maxInterpolationOffset = in->maxInterpolationOffset;
|
|
|
|
out->subPixelInterpolationOffsetBits = in->subPixelInterpolationOffsetBits;
|
|
|
|
out->maxFramebufferWidth = in->maxFramebufferWidth;
|
|
|
|
out->maxFramebufferHeight = in->maxFramebufferHeight;
|
|
|
|
out->maxFramebufferLayers = in->maxFramebufferLayers;
|
|
|
|
out->framebufferColorSampleCounts = in->framebufferColorSampleCounts;
|
|
|
|
out->framebufferDepthSampleCounts = in->framebufferDepthSampleCounts;
|
|
|
|
out->framebufferStencilSampleCounts = in->framebufferStencilSampleCounts;
|
|
|
|
out->framebufferNoAttachmentsSampleCounts = in->framebufferNoAttachmentsSampleCounts;
|
|
|
|
out->maxColorAttachments = in->maxColorAttachments;
|
|
|
|
out->sampledImageColorSampleCounts = in->sampledImageColorSampleCounts;
|
|
|
|
out->sampledImageIntegerSampleCounts = in->sampledImageIntegerSampleCounts;
|
|
|
|
out->sampledImageDepthSampleCounts = in->sampledImageDepthSampleCounts;
|
|
|
|
out->sampledImageStencilSampleCounts = in->sampledImageStencilSampleCounts;
|
|
|
|
out->storageImageSampleCounts = in->storageImageSampleCounts;
|
|
|
|
out->maxSampleMaskWords = in->maxSampleMaskWords;
|
|
|
|
out->timestampComputeAndGraphics = in->timestampComputeAndGraphics;
|
|
|
|
out->timestampPeriod = in->timestampPeriod;
|
|
|
|
out->maxClipDistances = in->maxClipDistances;
|
|
|
|
out->maxCullDistances = in->maxCullDistances;
|
|
|
|
out->maxCombinedClipAndCullDistances = in->maxCombinedClipAndCullDistances;
|
|
|
|
out->discreteQueuePriorities = in->discreteQueuePriorities;
|
|
|
|
memcpy(out->pointSizeRange, in->pointSizeRange, 2 * sizeof(float));
|
|
|
|
memcpy(out->lineWidthRange, in->lineWidthRange, 2 * sizeof(float));
|
|
|
|
out->pointSizeGranularity = in->pointSizeGranularity;
|
|
|
|
out->lineWidthGranularity = in->lineWidthGranularity;
|
|
|
|
out->strictLines = in->strictLines;
|
|
|
|
out->standardSampleLocations = in->standardSampleLocations;
|
|
|
|
out->optimalBufferCopyOffsetAlignment = in->optimalBufferCopyOffsetAlignment;
|
|
|
|
out->optimalBufferCopyRowPitchAlignment = in->optimalBufferCopyRowPitchAlignment;
|
|
|
|
out->nonCoherentAtomSize = in->nonCoherentAtomSize;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_VkPhysicalDeviceProperties_host_to_win(const VkPhysicalDeviceProperties_host *in, VkPhysicalDeviceProperties *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->apiVersion = in->apiVersion;
|
|
|
|
out->driverVersion = in->driverVersion;
|
|
|
|
out->vendorID = in->vendorID;
|
|
|
|
out->deviceID = in->deviceID;
|
|
|
|
out->deviceType = in->deviceType;
|
|
|
|
memcpy(out->deviceName, in->deviceName, VK_MAX_PHYSICAL_DEVICE_NAME_SIZE * sizeof(char));
|
|
|
|
memcpy(out->pipelineCacheUUID, in->pipelineCacheUUID, VK_UUID_SIZE * sizeof(uint8_t));
|
|
|
|
convert_VkPhysicalDeviceLimits_host_to_win(&in->limits, &out->limits);
|
|
|
|
out->sparseProperties = in->sparseProperties;
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static inline void convert_VkPhysicalDeviceProperties2_win_to_host(const VkPhysicalDeviceProperties2 *in, VkPhysicalDeviceProperties2_host *out)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
out->sType = in->sType;
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static inline void convert_VkPhysicalDeviceProperties2_host_to_win(const VkPhysicalDeviceProperties2_host *in, VkPhysicalDeviceProperties2 *out)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->sType = in->sType;
|
|
|
|
out->pNext = in->pNext;
|
|
|
|
convert_VkPhysicalDeviceProperties_host_to_win(&in->properties, &out->properties);
|
|
|
|
}
|
|
|
|
|
2018-03-15 07:39:36 +01:00
|
|
|
static inline VkSparseMemoryBind_host *convert_VkSparseMemoryBind_array_win_to_host(const VkSparseMemoryBind *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkSparseMemoryBind_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].resourceOffset = in[i].resourceOffset;
|
|
|
|
out[i].size = in[i].size;
|
|
|
|
out[i].memory = in[i].memory;
|
|
|
|
out[i].memoryOffset = in[i].memoryOffset;
|
|
|
|
out[i].flags = in[i].flags;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkSparseMemoryBind_array(VkSparseMemoryBind_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkSparseBufferMemoryBindInfo_host *convert_VkSparseBufferMemoryBindInfo_array_win_to_host(const VkSparseBufferMemoryBindInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkSparseBufferMemoryBindInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].buffer = in[i].buffer;
|
|
|
|
out[i].bindCount = in[i].bindCount;
|
|
|
|
out[i].pBinds = convert_VkSparseMemoryBind_array_win_to_host(in[i].pBinds, in[i].bindCount);
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkSparseBufferMemoryBindInfo_array(VkSparseBufferMemoryBindInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
free_VkSparseMemoryBind_array((VkSparseMemoryBind_host *)in[i].pBinds, in[i].bindCount);
|
|
|
|
}
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkSparseImageOpaqueMemoryBindInfo_host *convert_VkSparseImageOpaqueMemoryBindInfo_array_win_to_host(const VkSparseImageOpaqueMemoryBindInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkSparseImageOpaqueMemoryBindInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].image = in[i].image;
|
|
|
|
out[i].bindCount = in[i].bindCount;
|
|
|
|
out[i].pBinds = convert_VkSparseMemoryBind_array_win_to_host(in[i].pBinds, in[i].bindCount);
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkSparseImageOpaqueMemoryBindInfo_array(VkSparseImageOpaqueMemoryBindInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
free_VkSparseMemoryBind_array((VkSparseMemoryBind_host *)in[i].pBinds, in[i].bindCount);
|
|
|
|
}
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkSparseImageMemoryBind_host *convert_VkSparseImageMemoryBind_array_win_to_host(const VkSparseImageMemoryBind *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkSparseImageMemoryBind_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].subresource = in[i].subresource;
|
|
|
|
out[i].offset = in[i].offset;
|
|
|
|
out[i].extent = in[i].extent;
|
|
|
|
out[i].memory = in[i].memory;
|
|
|
|
out[i].memoryOffset = in[i].memoryOffset;
|
|
|
|
out[i].flags = in[i].flags;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkSparseImageMemoryBind_array(VkSparseImageMemoryBind_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkSparseImageMemoryBindInfo_host *convert_VkSparseImageMemoryBindInfo_array_win_to_host(const VkSparseImageMemoryBindInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkSparseImageMemoryBindInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].image = in[i].image;
|
|
|
|
out[i].bindCount = in[i].bindCount;
|
|
|
|
out[i].pBinds = convert_VkSparseImageMemoryBind_array_win_to_host(in[i].pBinds, in[i].bindCount);
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkSparseImageMemoryBindInfo_array(VkSparseImageMemoryBindInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
free_VkSparseImageMemoryBind_array((VkSparseImageMemoryBind_host *)in[i].pBinds, in[i].bindCount);
|
|
|
|
}
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline VkBindSparseInfo_host *convert_VkBindSparseInfo_array_win_to_host(const VkBindSparseInfo *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkBindSparseInfo_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].waitSemaphoreCount = in[i].waitSemaphoreCount;
|
|
|
|
out[i].pWaitSemaphores = in[i].pWaitSemaphores;
|
|
|
|
out[i].bufferBindCount = in[i].bufferBindCount;
|
|
|
|
out[i].pBufferBinds = convert_VkSparseBufferMemoryBindInfo_array_win_to_host(in[i].pBufferBinds, in[i].bufferBindCount);
|
|
|
|
out[i].imageOpaqueBindCount = in[i].imageOpaqueBindCount;
|
|
|
|
out[i].pImageOpaqueBinds = convert_VkSparseImageOpaqueMemoryBindInfo_array_win_to_host(in[i].pImageOpaqueBinds, in[i].imageOpaqueBindCount);
|
|
|
|
out[i].imageBindCount = in[i].imageBindCount;
|
|
|
|
out[i].pImageBinds = convert_VkSparseImageMemoryBindInfo_array_win_to_host(in[i].pImageBinds, in[i].imageBindCount);
|
|
|
|
out[i].signalSemaphoreCount = in[i].signalSemaphoreCount;
|
|
|
|
out[i].pSignalSemaphores = in[i].pSignalSemaphores;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkBindSparseInfo_array(VkBindSparseInfo_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
free_VkSparseBufferMemoryBindInfo_array((VkSparseBufferMemoryBindInfo_host *)in[i].pBufferBinds, in[i].bufferBindCount);
|
|
|
|
free_VkSparseImageOpaqueMemoryBindInfo_array((VkSparseImageOpaqueMemoryBindInfo_host *)in[i].pImageOpaqueBinds, in[i].imageOpaqueBindCount);
|
|
|
|
free_VkSparseImageMemoryBindInfo_array((VkSparseImageMemoryBindInfo_host *)in[i].pImageBinds, in[i].imageBindCount);
|
|
|
|
}
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
2018-03-14 13:11:53 +01:00
|
|
|
static inline VkCopyDescriptorSet_host *convert_VkCopyDescriptorSet_array_win_to_host(const VkCopyDescriptorSet *in, uint32_t count)
|
|
|
|
{
|
|
|
|
VkCopyDescriptorSet_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = heap_alloc(count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].sType = in[i].sType;
|
|
|
|
out[i].pNext = in[i].pNext;
|
|
|
|
out[i].srcSet = in[i].srcSet;
|
|
|
|
out[i].srcBinding = in[i].srcBinding;
|
|
|
|
out[i].srcArrayElement = in[i].srcArrayElement;
|
|
|
|
out[i].dstSet = in[i].dstSet;
|
|
|
|
out[i].dstBinding = in[i].dstBinding;
|
|
|
|
out[i].dstArrayElement = in[i].dstArrayElement;
|
|
|
|
out[i].descriptorCount = in[i].descriptorCount;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_VkCopyDescriptorSet_array(VkCopyDescriptorSet_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
heap_free(in);
|
|
|
|
}
|
|
|
|
|
2018-03-09 17:48:46 +01:00
|
|
|
#endif /* USE_STRUCT_CONVERSION */
|
|
|
|
|
2018-07-13 10:55:36 +02:00
|
|
|
VkResult WINAPI wine_vkAcquireNextImage2KHR(VkDevice device, const VkAcquireNextImageInfoKHR *pAcquireInfo, uint32_t *pImageIndex)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkAcquireNextImageInfoKHR_host pAcquireInfo_host;
|
|
|
|
TRACE("%p, %p, %p\n", device, pAcquireInfo, pImageIndex);
|
|
|
|
|
|
|
|
convert_VkAcquireNextImageInfoKHR_win_to_host(pAcquireInfo, &pAcquireInfo_host);
|
|
|
|
result = device->funcs.p_vkAcquireNextImage2KHR(device->device, &pAcquireInfo_host, pImageIndex);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", device, pAcquireInfo, pImageIndex);
|
|
|
|
return device->funcs.p_vkAcquireNextImage2KHR(device->device, pAcquireInfo, pImageIndex);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkAcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t *pImageIndex)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, 0x%s, %p\n", device, wine_dbgstr_longlong(swapchain), wine_dbgstr_longlong(timeout), wine_dbgstr_longlong(semaphore), wine_dbgstr_longlong(fence), pImageIndex);
|
|
|
|
return device->funcs.p_vkAcquireNextImageKHR(device->device, swapchain, timeout, semaphore, fence, pImageIndex);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo *pAllocateInfo, VkDescriptorSet *pDescriptorSets)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkDescriptorSetAllocateInfo_host pAllocateInfo_host;
|
|
|
|
TRACE("%p, %p, %p\n", device, pAllocateInfo, pDescriptorSets);
|
|
|
|
|
|
|
|
convert_VkDescriptorSetAllocateInfo_win_to_host(pAllocateInfo, &pAllocateInfo_host);
|
|
|
|
result = device->funcs.p_vkAllocateDescriptorSets(device->device, &pAllocateInfo_host, pDescriptorSets);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", device, pAllocateInfo, pDescriptorSets);
|
|
|
|
return device->funcs.p_vkAllocateDescriptorSets(device->device, pAllocateInfo, pDescriptorSets);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkAllocateMemory(VkDevice device, const VkMemoryAllocateInfo *pAllocateInfo, const VkAllocationCallbacks *pAllocator, VkDeviceMemory *pMemory)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkMemoryAllocateInfo_host pAllocateInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pAllocateInfo, pAllocator, pMemory);
|
|
|
|
|
|
|
|
convert_VkMemoryAllocateInfo_win_to_host(pAllocateInfo, &pAllocateInfo_host);
|
|
|
|
result = device->funcs.p_vkAllocateMemory(device->device, &pAllocateInfo_host, NULL, pMemory);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pAllocateInfo, pAllocator, pMemory);
|
|
|
|
return device->funcs.p_vkAllocateMemory(device->device, pAllocateInfo, NULL, pMemory);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkBeginCommandBuffer(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo *pBeginInfo)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkCommandBufferBeginInfo_host pBeginInfo_host;
|
|
|
|
TRACE("%p, %p\n", commandBuffer, pBeginInfo);
|
|
|
|
|
|
|
|
convert_VkCommandBufferBeginInfo_win_to_host(pBeginInfo, &pBeginInfo_host);
|
|
|
|
result = commandBuffer->device->funcs.p_vkBeginCommandBuffer(commandBuffer->command_buffer, &pBeginInfo_host);
|
|
|
|
|
|
|
|
free_VkCommandBufferBeginInfo(&pBeginInfo_host);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p\n", commandBuffer, pBeginInfo);
|
|
|
|
return commandBuffer->device->funcs.p_vkBeginCommandBuffer(commandBuffer->command_buffer, pBeginInfo);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static VkResult WINAPI wine_vkBindAccelerationStructureMemoryNV(VkDevice device, uint32_t bindInfoCount, const VkBindAccelerationStructureMemoryInfoNV *pBindInfos)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkBindAccelerationStructureMemoryInfoNV_host *pBindInfos_host;
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
|
|
|
|
pBindInfos_host = convert_VkBindAccelerationStructureMemoryInfoNV_array_win_to_host(pBindInfos, bindInfoCount);
|
|
|
|
result = device->funcs.p_vkBindAccelerationStructureMemoryNV(device->device, bindInfoCount, pBindInfos_host);
|
|
|
|
|
|
|
|
free_VkBindAccelerationStructureMemoryInfoNV_array(pBindInfos_host, bindInfoCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
return device->funcs.p_vkBindAccelerationStructureMemoryNV(device->device, bindInfoCount, pBindInfos);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkBindBufferMemory(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s\n", device, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(memory), wine_dbgstr_longlong(memoryOffset));
|
|
|
|
return device->funcs.p_vkBindBufferMemory(device->device, buffer, memory, memoryOffset);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
VkResult WINAPI wine_vkBindBufferMemory2(VkDevice device, uint32_t bindInfoCount, const VkBindBufferMemoryInfo *pBindInfos)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkBindBufferMemoryInfo_host *pBindInfos_host;
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
|
|
|
|
pBindInfos_host = convert_VkBindBufferMemoryInfo_array_win_to_host(pBindInfos, bindInfoCount);
|
|
|
|
result = device->funcs.p_vkBindBufferMemory2(device->device, bindInfoCount, pBindInfos_host);
|
|
|
|
|
|
|
|
free_VkBindBufferMemoryInfo_array(pBindInfos_host, bindInfoCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
return device->funcs.p_vkBindBufferMemory2(device->device, bindInfoCount, pBindInfos);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static VkResult WINAPI wine_vkBindBufferMemory2KHR(VkDevice device, uint32_t bindInfoCount, const VkBindBufferMemoryInfo *pBindInfos)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkBindBufferMemoryInfo_host *pBindInfos_host;
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
|
|
|
|
pBindInfos_host = convert_VkBindBufferMemoryInfo_array_win_to_host(pBindInfos, bindInfoCount);
|
|
|
|
result = device->funcs.p_vkBindBufferMemory2KHR(device->device, bindInfoCount, pBindInfos_host);
|
|
|
|
|
|
|
|
free_VkBindBufferMemoryInfo_array(pBindInfos_host, bindInfoCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
return device->funcs.p_vkBindBufferMemory2KHR(device->device, bindInfoCount, pBindInfos);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkBindImageMemory(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s\n", device, wine_dbgstr_longlong(image), wine_dbgstr_longlong(memory), wine_dbgstr_longlong(memoryOffset));
|
|
|
|
return device->funcs.p_vkBindImageMemory(device->device, image, memory, memoryOffset);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
VkResult WINAPI wine_vkBindImageMemory2(VkDevice device, uint32_t bindInfoCount, const VkBindImageMemoryInfo *pBindInfos)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkBindImageMemoryInfo_host *pBindInfos_host;
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
|
|
|
|
pBindInfos_host = convert_VkBindImageMemoryInfo_array_win_to_host(pBindInfos, bindInfoCount);
|
|
|
|
result = device->funcs.p_vkBindImageMemory2(device->device, bindInfoCount, pBindInfos_host);
|
|
|
|
|
|
|
|
free_VkBindImageMemoryInfo_array(pBindInfos_host, bindInfoCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
return device->funcs.p_vkBindImageMemory2(device->device, bindInfoCount, pBindInfos);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static VkResult WINAPI wine_vkBindImageMemory2KHR(VkDevice device, uint32_t bindInfoCount, const VkBindImageMemoryInfo *pBindInfos)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkBindImageMemoryInfo_host *pBindInfos_host;
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
|
|
|
|
pBindInfos_host = convert_VkBindImageMemoryInfo_array_win_to_host(pBindInfos, bindInfoCount);
|
|
|
|
result = device->funcs.p_vkBindImageMemory2KHR(device->device, bindInfoCount, pBindInfos_host);
|
|
|
|
|
|
|
|
free_VkBindImageMemoryInfo_array(pBindInfos_host, bindInfoCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p\n", device, bindInfoCount, pBindInfos);
|
|
|
|
return device->funcs.p_vkBindImageMemory2KHR(device->device, bindInfoCount, pBindInfos);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkCmdBeginConditionalRenderingEXT(VkCommandBuffer commandBuffer, const VkConditionalRenderingBeginInfoEXT *pConditionalRenderingBegin)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkConditionalRenderingBeginInfoEXT_host pConditionalRenderingBegin_host;
|
|
|
|
TRACE("%p, %p\n", commandBuffer, pConditionalRenderingBegin);
|
|
|
|
|
|
|
|
convert_VkConditionalRenderingBeginInfoEXT_win_to_host(pConditionalRenderingBegin, &pConditionalRenderingBegin_host);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBeginConditionalRenderingEXT(commandBuffer->command_buffer, &pConditionalRenderingBegin_host);
|
|
|
|
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p\n", commandBuffer, pConditionalRenderingBegin);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBeginConditionalRenderingEXT(commandBuffer->command_buffer, pConditionalRenderingBegin);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdBeginQuery(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, %u, %#x\n", commandBuffer, wine_dbgstr_longlong(queryPool), query, flags);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBeginQuery(commandBuffer->command_buffer, queryPool, query, flags);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-15 11:40:19 +02:00
|
|
|
static void WINAPI wine_vkCmdBeginQueryIndexedEXT(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags, uint32_t index)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %u, %#x, %u\n", commandBuffer, wine_dbgstr_longlong(queryPool), query, flags, index);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBeginQueryIndexedEXT(commandBuffer->command_buffer, queryPool, query, flags, index);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdBeginRenderPass(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo *pRenderPassBegin, VkSubpassContents contents)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkRenderPassBeginInfo_host pRenderPassBegin_host;
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %p, %#x\n", commandBuffer, pRenderPassBegin, contents);
|
2018-03-14 13:11:56 +01:00
|
|
|
|
|
|
|
convert_VkRenderPassBeginInfo_win_to_host(pRenderPassBegin, &pRenderPassBegin_host);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBeginRenderPass(commandBuffer->command_buffer, &pRenderPassBegin_host, contents);
|
|
|
|
|
|
|
|
#else
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %p, %#x\n", commandBuffer, pRenderPassBegin, contents);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdBeginRenderPass(commandBuffer->command_buffer, pRenderPassBegin, contents);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkCmdBeginRenderPass2KHR(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo *pRenderPassBegin, const VkSubpassBeginInfoKHR *pSubpassBeginInfo)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkRenderPassBeginInfo_host pRenderPassBegin_host;
|
|
|
|
TRACE("%p, %p, %p\n", commandBuffer, pRenderPassBegin, pSubpassBeginInfo);
|
|
|
|
|
|
|
|
convert_VkRenderPassBeginInfo_win_to_host(pRenderPassBegin, &pRenderPassBegin_host);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBeginRenderPass2KHR(commandBuffer->command_buffer, &pRenderPassBegin_host, pSubpassBeginInfo);
|
|
|
|
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", commandBuffer, pRenderPassBegin, pSubpassBeginInfo);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBeginRenderPass2KHR(commandBuffer->command_buffer, pRenderPassBegin, pSubpassBeginInfo);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-10-15 11:40:19 +02:00
|
|
|
static void WINAPI wine_vkCmdBeginTransformFeedbackEXT(VkCommandBuffer commandBuffer, uint32_t firstCounterBuffer, uint32_t counterBufferCount, const VkBuffer *pCounterBuffers, const VkDeviceSize *pCounterBufferOffsets)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %p, %p\n", commandBuffer, firstCounterBuffer, counterBufferCount, pCounterBuffers, pCounterBufferOffsets);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBeginTransformFeedbackEXT(commandBuffer->command_buffer, firstCounterBuffer, counterBufferCount, pCounterBuffers, pCounterBufferOffsets);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdBindDescriptorSets(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet *pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t *pDynamicOffsets)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, 0x%s, %u, %u, %p, %u, %p\n", commandBuffer, pipelineBindPoint, wine_dbgstr_longlong(layout), firstSet, descriptorSetCount, pDescriptorSets, dynamicOffsetCount, pDynamicOffsets);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdBindDescriptorSets(commandBuffer->command_buffer, pipelineBindPoint, layout, firstSet, descriptorSetCount, pDescriptorSets, dynamicOffsetCount, pDynamicOffsets);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdBindIndexBuffer(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, 0x%s, %#x\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset), indexType);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdBindIndexBuffer(commandBuffer->command_buffer, buffer, offset, indexType);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdBindPipeline(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, 0x%s\n", commandBuffer, pipelineBindPoint, wine_dbgstr_longlong(pipeline));
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdBindPipeline(commandBuffer->command_buffer, pipelineBindPoint, pipeline);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkCmdBindShadingRateImageNV(VkCommandBuffer commandBuffer, VkImageView imageView, VkImageLayout imageLayout)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %#x\n", commandBuffer, wine_dbgstr_longlong(imageView), imageLayout);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBindShadingRateImageNV(commandBuffer->command_buffer, imageView, imageLayout);
|
|
|
|
}
|
|
|
|
|
2018-10-15 11:40:19 +02:00
|
|
|
static void WINAPI wine_vkCmdBindTransformFeedbackBuffersEXT(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer *pBuffers, const VkDeviceSize *pOffsets, const VkDeviceSize *pSizes)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %p, %p, %p\n", commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets, pSizes);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBindTransformFeedbackBuffersEXT(commandBuffer->command_buffer, firstBinding, bindingCount, pBuffers, pOffsets, pSizes);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdBindVertexBuffers(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer *pBuffers, const VkDeviceSize *pOffsets)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %u, %u, %p, %p\n", commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBindVertexBuffers(commandBuffer->command_buffer, firstBinding, bindingCount, pBuffers, pOffsets);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdBlitImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit *pRegions, VkFilter filter)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, %#x, 0x%s, %#x, %u, %p, %#x\n", commandBuffer, wine_dbgstr_longlong(srcImage), srcImageLayout, wine_dbgstr_longlong(dstImage), dstImageLayout, regionCount, pRegions, filter);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdBlitImage(commandBuffer->command_buffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions, filter);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static void WINAPI wine_vkCmdBuildAccelerationStructureNV(VkCommandBuffer commandBuffer, const VkAccelerationStructureInfoNV *pInfo, VkBuffer instanceData, VkDeviceSize instanceOffset, VkBool32 update, VkAccelerationStructureNV dst, VkAccelerationStructureNV src, VkBuffer scratch, VkDeviceSize scratchOffset)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkAccelerationStructureInfoNV_host pInfo_host;
|
|
|
|
TRACE("%p, %p, 0x%s, 0x%s, %u, 0x%s, 0x%s, 0x%s, 0x%s\n", commandBuffer, pInfo, wine_dbgstr_longlong(instanceData), wine_dbgstr_longlong(instanceOffset), update, wine_dbgstr_longlong(dst), wine_dbgstr_longlong(src), wine_dbgstr_longlong(scratch), wine_dbgstr_longlong(scratchOffset));
|
|
|
|
|
|
|
|
convert_VkAccelerationStructureInfoNV_win_to_host(pInfo, &pInfo_host);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBuildAccelerationStructureNV(commandBuffer->command_buffer, &pInfo_host, instanceData, instanceOffset, update, dst, src, scratch, scratchOffset);
|
|
|
|
|
|
|
|
free_VkAccelerationStructureInfoNV(&pInfo_host);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, 0x%s, 0x%s, %u, 0x%s, 0x%s, 0x%s, 0x%s\n", commandBuffer, pInfo, wine_dbgstr_longlong(instanceData), wine_dbgstr_longlong(instanceOffset), update, wine_dbgstr_longlong(dst), wine_dbgstr_longlong(src), wine_dbgstr_longlong(scratch), wine_dbgstr_longlong(scratchOffset));
|
|
|
|
commandBuffer->device->funcs.p_vkCmdBuildAccelerationStructureNV(commandBuffer->command_buffer, pInfo, instanceData, instanceOffset, update, dst, src, scratch, scratchOffset);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdClearAttachments(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment *pAttachments, uint32_t rectCount, const VkClearRect *pRects)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %u, %p, %u, %p\n", commandBuffer, attachmentCount, pAttachments, rectCount, pRects);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdClearAttachments(commandBuffer->command_buffer, attachmentCount, pAttachments, rectCount, pRects);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdClearColorImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue *pColor, uint32_t rangeCount, const VkImageSubresourceRange *pRanges)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, %#x, %p, %u, %p\n", commandBuffer, wine_dbgstr_longlong(image), imageLayout, pColor, rangeCount, pRanges);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdClearColorImage(commandBuffer->command_buffer, image, imageLayout, pColor, rangeCount, pRanges);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdClearDepthStencilImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue *pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange *pRanges)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, %#x, %p, %u, %p\n", commandBuffer, wine_dbgstr_longlong(image), imageLayout, pDepthStencil, rangeCount, pRanges);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdClearDepthStencilImage(commandBuffer->command_buffer, image, imageLayout, pDepthStencil, rangeCount, pRanges);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static void WINAPI wine_vkCmdCopyAccelerationStructureNV(VkCommandBuffer commandBuffer, VkAccelerationStructureNV dst, VkAccelerationStructureNV src, VkCopyAccelerationStructureModeNV mode)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, %#x\n", commandBuffer, wine_dbgstr_longlong(dst), wine_dbgstr_longlong(src), mode);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdCopyAccelerationStructureNV(commandBuffer->command_buffer, dst, src, mode);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdCopyBuffer(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy *pRegions)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkBufferCopy_host *pRegions_host;
|
|
|
|
TRACE("%p, 0x%s, 0x%s, %u, %p\n", commandBuffer, wine_dbgstr_longlong(srcBuffer), wine_dbgstr_longlong(dstBuffer), regionCount, pRegions);
|
|
|
|
|
|
|
|
pRegions_host = convert_VkBufferCopy_array_win_to_host(pRegions, regionCount);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdCopyBuffer(commandBuffer->command_buffer, srcBuffer, dstBuffer, regionCount, pRegions_host);
|
|
|
|
|
|
|
|
free_VkBufferCopy_array(pRegions_host, regionCount);
|
|
|
|
#else
|
|
|
|
TRACE("%p, 0x%s, 0x%s, %u, %p\n", commandBuffer, wine_dbgstr_longlong(srcBuffer), wine_dbgstr_longlong(dstBuffer), regionCount, pRegions);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdCopyBuffer(commandBuffer->command_buffer, srcBuffer, dstBuffer, regionCount, pRegions);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdCopyBufferToImage(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy *pRegions)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkBufferImageCopy_host *pRegions_host;
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, 0x%s, %#x, %u, %p\n", commandBuffer, wine_dbgstr_longlong(srcBuffer), wine_dbgstr_longlong(dstImage), dstImageLayout, regionCount, pRegions);
|
2018-03-14 13:11:56 +01:00
|
|
|
|
|
|
|
pRegions_host = convert_VkBufferImageCopy_array_win_to_host(pRegions, regionCount);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdCopyBufferToImage(commandBuffer->command_buffer, srcBuffer, dstImage, dstImageLayout, regionCount, pRegions_host);
|
|
|
|
|
|
|
|
free_VkBufferImageCopy_array(pRegions_host, regionCount);
|
|
|
|
#else
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, 0x%s, %#x, %u, %p\n", commandBuffer, wine_dbgstr_longlong(srcBuffer), wine_dbgstr_longlong(dstImage), dstImageLayout, regionCount, pRegions);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdCopyBufferToImage(commandBuffer->command_buffer, srcBuffer, dstImage, dstImageLayout, regionCount, pRegions);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdCopyImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy *pRegions)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, %#x, 0x%s, %#x, %u, %p\n", commandBuffer, wine_dbgstr_longlong(srcImage), srcImageLayout, wine_dbgstr_longlong(dstImage), dstImageLayout, regionCount, pRegions);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdCopyImage(commandBuffer->command_buffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdCopyImageToBuffer(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy *pRegions)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkBufferImageCopy_host *pRegions_host;
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, %#x, 0x%s, %u, %p\n", commandBuffer, wine_dbgstr_longlong(srcImage), srcImageLayout, wine_dbgstr_longlong(dstBuffer), regionCount, pRegions);
|
2018-03-14 13:11:56 +01:00
|
|
|
|
|
|
|
pRegions_host = convert_VkBufferImageCopy_array_win_to_host(pRegions, regionCount);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdCopyImageToBuffer(commandBuffer->command_buffer, srcImage, srcImageLayout, dstBuffer, regionCount, pRegions_host);
|
|
|
|
|
|
|
|
free_VkBufferImageCopy_array(pRegions_host, regionCount);
|
|
|
|
#else
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, %#x, 0x%s, %u, %p\n", commandBuffer, wine_dbgstr_longlong(srcImage), srcImageLayout, wine_dbgstr_longlong(dstBuffer), regionCount, pRegions);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdCopyImageToBuffer(commandBuffer->command_buffer, srcImage, srcImageLayout, dstBuffer, regionCount, pRegions);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdCopyQueryPoolResults(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, %u, %u, 0x%s, 0x%s, 0x%s, %#x\n", commandBuffer, wine_dbgstr_longlong(queryPool), firstQuery, queryCount, wine_dbgstr_longlong(dstBuffer), wine_dbgstr_longlong(dstOffset), wine_dbgstr_longlong(stride), flags);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdCopyQueryPoolResults(commandBuffer->command_buffer, queryPool, firstQuery, queryCount, dstBuffer, dstOffset, stride, flags);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdDispatch(VkCommandBuffer commandBuffer, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %u, %u, %u\n", commandBuffer, groupCountX, groupCountY, groupCountZ);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDispatch(commandBuffer->command_buffer, groupCountX, groupCountY, groupCountZ);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-13 10:55:36 +02:00
|
|
|
void WINAPI wine_vkCmdDispatchBase(VkCommandBuffer commandBuffer, uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %u, %u, %u, %u\n", commandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDispatchBase(commandBuffer->command_buffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void WINAPI wine_vkCmdDispatchBaseKHR(VkCommandBuffer commandBuffer, uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %u, %u, %u, %u\n", commandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDispatchBaseKHR(commandBuffer->command_buffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdDispatchIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, 0x%s\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset));
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDispatchIndirect(commandBuffer->command_buffer, buffer, offset);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdDraw(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %u, %u, %u, %u\n", commandBuffer, vertexCount, instanceCount, firstVertex, firstInstance);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDraw(commandBuffer->command_buffer, vertexCount, instanceCount, firstVertex, firstInstance);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdDrawIndexed(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %u, %u, %u, %d, %u\n", commandBuffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawIndexed(commandBuffer->command_buffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdDrawIndexedIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset), drawCount, stride);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawIndexedIndirect(commandBuffer->command_buffer, buffer, offset, drawCount, stride);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-15 07:39:40 +01:00
|
|
|
static void WINAPI wine_vkCmdDrawIndexedIndirectCountAMD(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset), wine_dbgstr_longlong(countBuffer), wine_dbgstr_longlong(countBufferOffset), maxDrawCount, stride);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawIndexedIndirectCountAMD(commandBuffer->command_buffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkCmdDrawIndexedIndirectCountKHR(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset), wine_dbgstr_longlong(countBuffer), wine_dbgstr_longlong(countBufferOffset), maxDrawCount, stride);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawIndexedIndirectCountKHR(commandBuffer->command_buffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdDrawIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset), drawCount, stride);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawIndirect(commandBuffer->command_buffer, buffer, offset, drawCount, stride);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-15 11:40:19 +02:00
|
|
|
static void WINAPI wine_vkCmdDrawIndirectByteCountEXT(VkCommandBuffer commandBuffer, uint32_t instanceCount, uint32_t firstInstance, VkBuffer counterBuffer, VkDeviceSize counterBufferOffset, uint32_t counterOffset, uint32_t vertexStride)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, 0x%s, 0x%s, %u, %u\n", commandBuffer, instanceCount, firstInstance, wine_dbgstr_longlong(counterBuffer), wine_dbgstr_longlong(counterBufferOffset), counterOffset, vertexStride);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawIndirectByteCountEXT(commandBuffer->command_buffer, instanceCount, firstInstance, counterBuffer, counterBufferOffset, counterOffset, vertexStride);
|
|
|
|
}
|
|
|
|
|
2018-03-15 07:39:40 +01:00
|
|
|
static void WINAPI wine_vkCmdDrawIndirectCountAMD(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset), wine_dbgstr_longlong(countBuffer), wine_dbgstr_longlong(countBufferOffset), maxDrawCount, stride);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawIndirectCountAMD(commandBuffer->command_buffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkCmdDrawIndirectCountKHR(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset), wine_dbgstr_longlong(countBuffer), wine_dbgstr_longlong(countBufferOffset), maxDrawCount, stride);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawIndirectCountKHR(commandBuffer->command_buffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride);
|
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkCmdDrawMeshTasksIndirectCountNV(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset), wine_dbgstr_longlong(countBuffer), wine_dbgstr_longlong(countBufferOffset), maxDrawCount, stride);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawMeshTasksIndirectCountNV(commandBuffer->command_buffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void WINAPI wine_vkCmdDrawMeshTasksIndirectNV(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(buffer), wine_dbgstr_longlong(offset), drawCount, stride);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawMeshTasksIndirectNV(commandBuffer->command_buffer, buffer, offset, drawCount, stride);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void WINAPI wine_vkCmdDrawMeshTasksNV(VkCommandBuffer commandBuffer, uint32_t taskCount, uint32_t firstTask)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u\n", commandBuffer, taskCount, firstTask);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdDrawMeshTasksNV(commandBuffer->command_buffer, taskCount, firstTask);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void WINAPI wine_vkCmdEndConditionalRenderingEXT(VkCommandBuffer commandBuffer)
|
|
|
|
{
|
|
|
|
TRACE("%p\n", commandBuffer);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdEndConditionalRenderingEXT(commandBuffer->command_buffer);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdEndQuery(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, %u\n", commandBuffer, wine_dbgstr_longlong(queryPool), query);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdEndQuery(commandBuffer->command_buffer, queryPool, query);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-15 11:40:19 +02:00
|
|
|
static void WINAPI wine_vkCmdEndQueryIndexedEXT(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, uint32_t index)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(queryPool), query, index);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdEndQueryIndexedEXT(commandBuffer->command_buffer, queryPool, query, index);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdEndRenderPass(VkCommandBuffer commandBuffer)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p\n", commandBuffer);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdEndRenderPass(commandBuffer->command_buffer);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkCmdEndRenderPass2KHR(VkCommandBuffer commandBuffer, const VkSubpassEndInfoKHR *pSubpassEndInfo)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p\n", commandBuffer, pSubpassEndInfo);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdEndRenderPass2KHR(commandBuffer->command_buffer, pSubpassEndInfo);
|
|
|
|
}
|
|
|
|
|
2018-10-15 11:40:19 +02:00
|
|
|
static void WINAPI wine_vkCmdEndTransformFeedbackEXT(VkCommandBuffer commandBuffer, uint32_t firstCounterBuffer, uint32_t counterBufferCount, const VkBuffer *pCounterBuffers, const VkDeviceSize *pCounterBufferOffsets)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %p, %p\n", commandBuffer, firstCounterBuffer, counterBufferCount, pCounterBuffers, pCounterBufferOffsets);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdEndTransformFeedbackEXT(commandBuffer->command_buffer, firstCounterBuffer, counterBufferCount, pCounterBuffers, pCounterBufferOffsets);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdFillBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, %u\n", commandBuffer, wine_dbgstr_longlong(dstBuffer), wine_dbgstr_longlong(dstOffset), wine_dbgstr_longlong(size), data);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdFillBuffer(commandBuffer->command_buffer, dstBuffer, dstOffset, size, data);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdNextSubpass(VkCommandBuffer commandBuffer, VkSubpassContents contents)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x\n", commandBuffer, contents);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdNextSubpass(commandBuffer->command_buffer, contents);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkCmdNextSubpass2KHR(VkCommandBuffer commandBuffer, const VkSubpassBeginInfoKHR *pSubpassBeginInfo, const VkSubpassEndInfoKHR *pSubpassEndInfo)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p\n", commandBuffer, pSubpassBeginInfo, pSubpassEndInfo);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdNextSubpass2KHR(commandBuffer->command_buffer, pSubpassBeginInfo, pSubpassEndInfo);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdPipelineBarrier(VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier *pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier *pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier *pImageMemoryBarriers)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkBufferMemoryBarrier_host *pBufferMemoryBarriers_host;
|
|
|
|
VkImageMemoryBarrier_host *pImageMemoryBarriers_host;
|
|
|
|
TRACE("%p, %#x, %#x, %#x, %u, %p, %u, %p, %u, %p\n", commandBuffer, srcStageMask, dstStageMask, dependencyFlags, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers);
|
|
|
|
|
|
|
|
pBufferMemoryBarriers_host = convert_VkBufferMemoryBarrier_array_win_to_host(pBufferMemoryBarriers, bufferMemoryBarrierCount);
|
|
|
|
pImageMemoryBarriers_host = convert_VkImageMemoryBarrier_array_win_to_host(pImageMemoryBarriers, imageMemoryBarrierCount);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdPipelineBarrier(commandBuffer->command_buffer, srcStageMask, dstStageMask, dependencyFlags, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers_host, imageMemoryBarrierCount, pImageMemoryBarriers_host);
|
|
|
|
|
|
|
|
free_VkBufferMemoryBarrier_array(pBufferMemoryBarriers_host, bufferMemoryBarrierCount);
|
|
|
|
free_VkImageMemoryBarrier_array(pImageMemoryBarriers_host, imageMemoryBarrierCount);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %#x, %#x, %#x, %u, %p, %u, %p, %u, %p\n", commandBuffer, srcStageMask, dstStageMask, dependencyFlags, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdPipelineBarrier(commandBuffer->command_buffer, srcStageMask, dstStageMask, dependencyFlags, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdPushConstants(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void *pValues)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, %#x, %u, %u, %p\n", commandBuffer, wine_dbgstr_longlong(layout), stageFlags, offset, size, pValues);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdPushConstants(commandBuffer->command_buffer, layout, stageFlags, offset, size, pValues);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-15 07:39:40 +01:00
|
|
|
static void WINAPI wine_vkCmdPushDescriptorSetKHR(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set, uint32_t descriptorWriteCount, const VkWriteDescriptorSet *pDescriptorWrites)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkWriteDescriptorSet_host *pDescriptorWrites_host;
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, 0x%s, %u, %u, %p\n", commandBuffer, pipelineBindPoint, wine_dbgstr_longlong(layout), set, descriptorWriteCount, pDescriptorWrites);
|
2018-03-15 07:39:40 +01:00
|
|
|
|
|
|
|
pDescriptorWrites_host = convert_VkWriteDescriptorSet_array_win_to_host(pDescriptorWrites, descriptorWriteCount);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdPushDescriptorSetKHR(commandBuffer->command_buffer, pipelineBindPoint, layout, set, descriptorWriteCount, pDescriptorWrites_host);
|
|
|
|
|
|
|
|
free_VkWriteDescriptorSet_array(pDescriptorWrites_host, descriptorWriteCount);
|
|
|
|
#else
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, 0x%s, %u, %u, %p\n", commandBuffer, pipelineBindPoint, wine_dbgstr_longlong(layout), set, descriptorWriteCount, pDescriptorWrites);
|
2018-03-15 07:39:40 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdPushDescriptorSetKHR(commandBuffer->command_buffer, pipelineBindPoint, layout, set, descriptorWriteCount, pDescriptorWrites);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkCmdPushDescriptorSetWithTemplateKHR(VkCommandBuffer commandBuffer, VkDescriptorUpdateTemplate descriptorUpdateTemplate, VkPipelineLayout layout, uint32_t set, const void *pData)
|
2018-03-15 07:39:40 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, %u, %p\n", commandBuffer, wine_dbgstr_longlong(descriptorUpdateTemplate), wine_dbgstr_longlong(layout), set, pData);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdPushDescriptorSetWithTemplateKHR(commandBuffer->command_buffer, descriptorUpdateTemplate, layout, set, pData);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdResetEvent(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, %#x\n", commandBuffer, wine_dbgstr_longlong(event), stageMask);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdResetEvent(commandBuffer->command_buffer, event, stageMask);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdResetQueryPool(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, %u, %u\n", commandBuffer, wine_dbgstr_longlong(queryPool), firstQuery, queryCount);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdResetQueryPool(commandBuffer->command_buffer, queryPool, firstQuery, queryCount);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdResolveImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve *pRegions)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, 0x%s, %#x, 0x%s, %#x, %u, %p\n", commandBuffer, wine_dbgstr_longlong(srcImage), srcImageLayout, wine_dbgstr_longlong(dstImage), dstImageLayout, regionCount, pRegions);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdResolveImage(commandBuffer->command_buffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetBlendConstants(VkCommandBuffer commandBuffer, const float blendConstants[4])
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %p\n", commandBuffer, blendConstants);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetBlendConstants(commandBuffer->command_buffer, blendConstants);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkCmdSetCheckpointNV(VkCommandBuffer commandBuffer, const void *pCheckpointMarker)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p\n", commandBuffer, pCheckpointMarker);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetCheckpointNV(commandBuffer->command_buffer, pCheckpointMarker);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void WINAPI wine_vkCmdSetCoarseSampleOrderNV(VkCommandBuffer commandBuffer, VkCoarseSampleOrderTypeNV sampleOrderType, uint32_t customSampleOrderCount, const VkCoarseSampleOrderCustomNV *pCustomSampleOrders)
|
|
|
|
{
|
|
|
|
TRACE("%p, %#x, %u, %p\n", commandBuffer, sampleOrderType, customSampleOrderCount, pCustomSampleOrders);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetCoarseSampleOrderNV(commandBuffer->command_buffer, sampleOrderType, customSampleOrderCount, pCustomSampleOrders);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetDepthBias(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %f, %f, %f\n", commandBuffer, depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetDepthBias(commandBuffer->command_buffer, depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetDepthBounds(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %f, %f\n", commandBuffer, minDepthBounds, maxDepthBounds);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetDepthBounds(commandBuffer->command_buffer, minDepthBounds, maxDepthBounds);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-13 10:55:36 +02:00
|
|
|
void WINAPI wine_vkCmdSetDeviceMask(VkCommandBuffer commandBuffer, uint32_t deviceMask)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u\n", commandBuffer, deviceMask);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetDeviceMask(commandBuffer->command_buffer, deviceMask);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void WINAPI wine_vkCmdSetDeviceMaskKHR(VkCommandBuffer commandBuffer, uint32_t deviceMask)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u\n", commandBuffer, deviceMask);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetDeviceMaskKHR(commandBuffer->command_buffer, deviceMask);
|
|
|
|
}
|
|
|
|
|
2018-03-15 07:39:40 +01:00
|
|
|
static void WINAPI wine_vkCmdSetDiscardRectangleEXT(VkCommandBuffer commandBuffer, uint32_t firstDiscardRectangle, uint32_t discardRectangleCount, const VkRect2D *pDiscardRectangles)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %p\n", commandBuffer, firstDiscardRectangle, discardRectangleCount, pDiscardRectangles);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetDiscardRectangleEXT(commandBuffer->command_buffer, firstDiscardRectangle, discardRectangleCount, pDiscardRectangles);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetEvent(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, %#x\n", commandBuffer, wine_dbgstr_longlong(event), stageMask);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetEvent(commandBuffer->command_buffer, event, stageMask);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkCmdSetExclusiveScissorNV(VkCommandBuffer commandBuffer, uint32_t firstExclusiveScissor, uint32_t exclusiveScissorCount, const VkRect2D *pExclusiveScissors)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %p\n", commandBuffer, firstExclusiveScissor, exclusiveScissorCount, pExclusiveScissors);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetExclusiveScissorNV(commandBuffer->command_buffer, firstExclusiveScissor, exclusiveScissorCount, pExclusiveScissors);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetLineWidth(VkCommandBuffer commandBuffer, float lineWidth)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %f\n", commandBuffer, lineWidth);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetLineWidth(commandBuffer->command_buffer, lineWidth);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkCmdSetSampleLocationsEXT(VkCommandBuffer commandBuffer, const VkSampleLocationsInfoEXT *pSampleLocationsInfo)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p\n", commandBuffer, pSampleLocationsInfo);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetSampleLocationsEXT(commandBuffer->command_buffer, pSampleLocationsInfo);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetScissor(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D *pScissors)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %u, %u, %p\n", commandBuffer, firstScissor, scissorCount, pScissors);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetScissor(commandBuffer->command_buffer, firstScissor, scissorCount, pScissors);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetStencilCompareMask(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %#x, %u\n", commandBuffer, faceMask, compareMask);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetStencilCompareMask(commandBuffer->command_buffer, faceMask, compareMask);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetStencilReference(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %#x, %u\n", commandBuffer, faceMask, reference);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetStencilReference(commandBuffer->command_buffer, faceMask, reference);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetStencilWriteMask(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %#x, %u\n", commandBuffer, faceMask, writeMask);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetStencilWriteMask(commandBuffer->command_buffer, faceMask, writeMask);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdSetViewport(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport *pViewports)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %u, %u, %p\n", commandBuffer, firstViewport, viewportCount, pViewports);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetViewport(commandBuffer->command_buffer, firstViewport, viewportCount, pViewports);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkCmdSetViewportShadingRatePaletteNV(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkShadingRatePaletteNV *pShadingRatePalettes)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %p\n", commandBuffer, firstViewport, viewportCount, pShadingRatePalettes);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetViewportShadingRatePaletteNV(commandBuffer->command_buffer, firstViewport, viewportCount, pShadingRatePalettes);
|
|
|
|
}
|
|
|
|
|
2018-03-15 07:39:40 +01:00
|
|
|
static void WINAPI wine_vkCmdSetViewportWScalingNV(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewportWScalingNV *pViewportWScalings)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %p\n", commandBuffer, firstViewport, viewportCount, pViewportWScalings);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdSetViewportWScalingNV(commandBuffer->command_buffer, firstViewport, viewportCount, pViewportWScalings);
|
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static void WINAPI wine_vkCmdTraceRaysNV(VkCommandBuffer commandBuffer, VkBuffer raygenShaderBindingTableBuffer, VkDeviceSize raygenShaderBindingOffset, VkBuffer missShaderBindingTableBuffer, VkDeviceSize missShaderBindingOffset, VkDeviceSize missShaderBindingStride, VkBuffer hitShaderBindingTableBuffer, VkDeviceSize hitShaderBindingOffset, VkDeviceSize hitShaderBindingStride, VkBuffer callableShaderBindingTableBuffer, VkDeviceSize callableShaderBindingOffset, VkDeviceSize callableShaderBindingStride, uint32_t width, uint32_t height, uint32_t depth)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, 0x%s, 0x%s, 0x%s, 0x%s, 0x%s, 0x%s, 0x%s, 0x%s, %u, %u, %u\n", commandBuffer, wine_dbgstr_longlong(raygenShaderBindingTableBuffer), wine_dbgstr_longlong(raygenShaderBindingOffset), wine_dbgstr_longlong(missShaderBindingTableBuffer), wine_dbgstr_longlong(missShaderBindingOffset), wine_dbgstr_longlong(missShaderBindingStride), wine_dbgstr_longlong(hitShaderBindingTableBuffer), wine_dbgstr_longlong(hitShaderBindingOffset), wine_dbgstr_longlong(hitShaderBindingStride), wine_dbgstr_longlong(callableShaderBindingTableBuffer), wine_dbgstr_longlong(callableShaderBindingOffset), wine_dbgstr_longlong(callableShaderBindingStride), width, height, depth);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdTraceRaysNV(commandBuffer->command_buffer, raygenShaderBindingTableBuffer, raygenShaderBindingOffset, missShaderBindingTableBuffer, missShaderBindingOffset, missShaderBindingStride, hitShaderBindingTableBuffer, hitShaderBindingOffset, hitShaderBindingStride, callableShaderBindingTableBuffer, callableShaderBindingOffset, callableShaderBindingStride, width, height, depth);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdUpdateBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void *pData)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, %p\n", commandBuffer, wine_dbgstr_longlong(dstBuffer), wine_dbgstr_longlong(dstOffset), wine_dbgstr_longlong(dataSize), pData);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdUpdateBuffer(commandBuffer->command_buffer, dstBuffer, dstOffset, dataSize, pData);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdWaitEvents(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent *pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier *pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier *pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier *pImageMemoryBarriers)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkBufferMemoryBarrier_host *pBufferMemoryBarriers_host;
|
|
|
|
VkImageMemoryBarrier_host *pImageMemoryBarriers_host;
|
|
|
|
TRACE("%p, %u, %p, %#x, %#x, %u, %p, %u, %p, %u, %p\n", commandBuffer, eventCount, pEvents, srcStageMask, dstStageMask, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers);
|
|
|
|
|
|
|
|
pBufferMemoryBarriers_host = convert_VkBufferMemoryBarrier_array_win_to_host(pBufferMemoryBarriers, bufferMemoryBarrierCount);
|
|
|
|
pImageMemoryBarriers_host = convert_VkImageMemoryBarrier_array_win_to_host(pImageMemoryBarriers, imageMemoryBarrierCount);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdWaitEvents(commandBuffer->command_buffer, eventCount, pEvents, srcStageMask, dstStageMask, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers_host, imageMemoryBarrierCount, pImageMemoryBarriers_host);
|
|
|
|
|
|
|
|
free_VkBufferMemoryBarrier_array(pBufferMemoryBarriers_host, bufferMemoryBarrierCount);
|
|
|
|
free_VkImageMemoryBarrier_array(pImageMemoryBarriers_host, imageMemoryBarrierCount);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p, %#x, %#x, %u, %p, %u, %p, %u, %p\n", commandBuffer, eventCount, pEvents, srcStageMask, dstStageMask, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdWaitEvents(commandBuffer->command_buffer, eventCount, pEvents, srcStageMask, dstStageMask, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static void WINAPI wine_vkCmdWriteAccelerationStructuresPropertiesNV(VkCommandBuffer commandBuffer, uint32_t accelerationStructureCount, const VkAccelerationStructureNV *pAccelerationStructures, VkQueryType queryType, VkQueryPool queryPool, uint32_t firstQuery)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %p, %#x, 0x%s, %u\n", commandBuffer, accelerationStructureCount, pAccelerationStructures, queryType, wine_dbgstr_longlong(queryPool), firstQuery);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdWriteAccelerationStructuresPropertiesNV(commandBuffer->command_buffer, accelerationStructureCount, pAccelerationStructures, queryType, queryPool, firstQuery);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkCmdWriteBufferMarkerAMD(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkBuffer dstBuffer, VkDeviceSize dstOffset, uint32_t marker)
|
|
|
|
{
|
|
|
|
TRACE("%p, %#x, 0x%s, 0x%s, %u\n", commandBuffer, pipelineStage, wine_dbgstr_longlong(dstBuffer), wine_dbgstr_longlong(dstOffset), marker);
|
|
|
|
commandBuffer->device->funcs.p_vkCmdWriteBufferMarkerAMD(commandBuffer->command_buffer, pipelineStage, dstBuffer, dstOffset, marker);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkCmdWriteTimestamp(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, 0x%s, %u\n", commandBuffer, pipelineStage, wine_dbgstr_longlong(queryPool), query);
|
2018-03-14 13:11:56 +01:00
|
|
|
commandBuffer->device->funcs.p_vkCmdWriteTimestamp(commandBuffer->command_buffer, pipelineStage, queryPool, query);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static VkResult WINAPI wine_vkCompileDeferredNV(VkDevice device, VkPipeline pipeline, uint32_t shader)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %u\n", device, wine_dbgstr_longlong(pipeline), shader);
|
|
|
|
return device->funcs.p_vkCompileDeferredNV(device->device, pipeline, shader);
|
|
|
|
}
|
|
|
|
|
|
|
|
static VkResult WINAPI wine_vkCreateAccelerationStructureNV(VkDevice device, const VkAccelerationStructureCreateInfoNV *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkAccelerationStructureNV *pAccelerationStructure)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkAccelerationStructureCreateInfoNV_host pCreateInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pAccelerationStructure);
|
|
|
|
|
|
|
|
convert_VkAccelerationStructureCreateInfoNV_win_to_host(pCreateInfo, &pCreateInfo_host);
|
|
|
|
result = device->funcs.p_vkCreateAccelerationStructureNV(device->device, &pCreateInfo_host, NULL, pAccelerationStructure);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pAccelerationStructure);
|
|
|
|
return device->funcs.p_vkCreateAccelerationStructureNV(device->device, pCreateInfo, NULL, pAccelerationStructure);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateBuffer(VkDevice device, const VkBufferCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkBuffer *pBuffer)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkBufferCreateInfo_host pCreateInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pBuffer);
|
|
|
|
|
|
|
|
convert_VkBufferCreateInfo_win_to_host(pCreateInfo, &pCreateInfo_host);
|
|
|
|
result = device->funcs.p_vkCreateBuffer(device->device, &pCreateInfo_host, NULL, pBuffer);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pBuffer);
|
|
|
|
return device->funcs.p_vkCreateBuffer(device->device, pCreateInfo, NULL, pBuffer);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateBufferView(VkDevice device, const VkBufferViewCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkBufferView *pView)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkBufferViewCreateInfo_host pCreateInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pView);
|
|
|
|
|
|
|
|
convert_VkBufferViewCreateInfo_win_to_host(pCreateInfo, &pCreateInfo_host);
|
|
|
|
result = device->funcs.p_vkCreateBufferView(device->device, &pCreateInfo_host, NULL, pView);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pView);
|
|
|
|
return device->funcs.p_vkCreateBufferView(device->device, pCreateInfo, NULL, pView);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo *pCreateInfos, const VkAllocationCallbacks *pAllocator, VkPipeline *pPipelines)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkComputePipelineCreateInfo_host *pCreateInfos_host;
|
|
|
|
TRACE("%p, 0x%s, %u, %p, %p, %p\n", device, wine_dbgstr_longlong(pipelineCache), createInfoCount, pCreateInfos, pAllocator, pPipelines);
|
|
|
|
|
|
|
|
pCreateInfos_host = convert_VkComputePipelineCreateInfo_array_win_to_host(pCreateInfos, createInfoCount);
|
|
|
|
result = device->funcs.p_vkCreateComputePipelines(device->device, pipelineCache, createInfoCount, pCreateInfos_host, NULL, pPipelines);
|
|
|
|
|
|
|
|
free_VkComputePipelineCreateInfo_array(pCreateInfos_host, createInfoCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, 0x%s, %u, %p, %p, %p\n", device, wine_dbgstr_longlong(pipelineCache), createInfoCount, pCreateInfos, pAllocator, pPipelines);
|
|
|
|
return device->funcs.p_vkCreateComputePipelines(device->device, pipelineCache, createInfoCount, pCreateInfos, NULL, pPipelines);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateDescriptorPool(VkDevice device, const VkDescriptorPoolCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDescriptorPool *pDescriptorPool)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pDescriptorPool);
|
|
|
|
return device->funcs.p_vkCreateDescriptorPool(device->device, pCreateInfo, NULL, pDescriptorPool);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateDescriptorSetLayout(VkDevice device, const VkDescriptorSetLayoutCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDescriptorSetLayout *pSetLayout)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pSetLayout);
|
|
|
|
return device->funcs.p_vkCreateDescriptorSetLayout(device->device, pCreateInfo, NULL, pSetLayout);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
VkResult WINAPI wine_vkCreateDescriptorUpdateTemplate(VkDevice device, const VkDescriptorUpdateTemplateCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDescriptorUpdateTemplate *pDescriptorUpdateTemplate)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkDescriptorUpdateTemplateCreateInfo_host pCreateInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pDescriptorUpdateTemplate);
|
|
|
|
|
|
|
|
convert_VkDescriptorUpdateTemplateCreateInfo_win_to_host(pCreateInfo, &pCreateInfo_host);
|
|
|
|
result = device->funcs.p_vkCreateDescriptorUpdateTemplate(device->device, &pCreateInfo_host, NULL, pDescriptorUpdateTemplate);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pDescriptorUpdateTemplate);
|
|
|
|
return device->funcs.p_vkCreateDescriptorUpdateTemplate(device->device, pCreateInfo, NULL, pDescriptorUpdateTemplate);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static VkResult WINAPI wine_vkCreateDescriptorUpdateTemplateKHR(VkDevice device, const VkDescriptorUpdateTemplateCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDescriptorUpdateTemplate *pDescriptorUpdateTemplate)
|
2018-03-15 07:39:40 +01:00
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
2018-06-06 11:11:53 +02:00
|
|
|
VkDescriptorUpdateTemplateCreateInfo_host pCreateInfo_host;
|
2018-03-15 07:39:40 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pDescriptorUpdateTemplate);
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
convert_VkDescriptorUpdateTemplateCreateInfo_win_to_host(pCreateInfo, &pCreateInfo_host);
|
2018-03-15 07:39:40 +01:00
|
|
|
result = device->funcs.p_vkCreateDescriptorUpdateTemplateKHR(device->device, &pCreateInfo_host, NULL, pDescriptorUpdateTemplate);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pDescriptorUpdateTemplate);
|
|
|
|
return device->funcs.p_vkCreateDescriptorUpdateTemplateKHR(device->device, pCreateInfo, NULL, pDescriptorUpdateTemplate);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateEvent(VkDevice device, const VkEventCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkEvent *pEvent)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pEvent);
|
|
|
|
return device->funcs.p_vkCreateEvent(device->device, pCreateInfo, NULL, pEvent);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateFence(VkDevice device, const VkFenceCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkFence *pFence)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pFence);
|
|
|
|
return device->funcs.p_vkCreateFence(device->device, pCreateInfo, NULL, pFence);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateFramebuffer(VkDevice device, const VkFramebufferCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkFramebuffer *pFramebuffer)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkFramebufferCreateInfo_host pCreateInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pFramebuffer);
|
|
|
|
|
|
|
|
convert_VkFramebufferCreateInfo_win_to_host(pCreateInfo, &pCreateInfo_host);
|
|
|
|
result = device->funcs.p_vkCreateFramebuffer(device->device, &pCreateInfo_host, NULL, pFramebuffer);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pFramebuffer);
|
|
|
|
return device->funcs.p_vkCreateFramebuffer(device->device, pCreateInfo, NULL, pFramebuffer);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo *pCreateInfos, const VkAllocationCallbacks *pAllocator, VkPipeline *pPipelines)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkGraphicsPipelineCreateInfo_host *pCreateInfos_host;
|
|
|
|
TRACE("%p, 0x%s, %u, %p, %p, %p\n", device, wine_dbgstr_longlong(pipelineCache), createInfoCount, pCreateInfos, pAllocator, pPipelines);
|
|
|
|
|
|
|
|
pCreateInfos_host = convert_VkGraphicsPipelineCreateInfo_array_win_to_host(pCreateInfos, createInfoCount);
|
|
|
|
result = device->funcs.p_vkCreateGraphicsPipelines(device->device, pipelineCache, createInfoCount, pCreateInfos_host, NULL, pPipelines);
|
|
|
|
|
|
|
|
free_VkGraphicsPipelineCreateInfo_array(pCreateInfos_host, createInfoCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, 0x%s, %u, %p, %p, %p\n", device, wine_dbgstr_longlong(pipelineCache), createInfoCount, pCreateInfos, pAllocator, pPipelines);
|
|
|
|
return device->funcs.p_vkCreateGraphicsPipelines(device->device, pipelineCache, createInfoCount, pCreateInfos, NULL, pPipelines);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateImage(VkDevice device, const VkImageCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkImage *pImage)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pImage);
|
|
|
|
return device->funcs.p_vkCreateImage(device->device, pCreateInfo, NULL, pImage);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateImageView(VkDevice device, const VkImageViewCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkImageView *pView)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkImageViewCreateInfo_host pCreateInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pView);
|
|
|
|
|
|
|
|
convert_VkImageViewCreateInfo_win_to_host(pCreateInfo, &pCreateInfo_host);
|
|
|
|
result = device->funcs.p_vkCreateImageView(device->device, &pCreateInfo_host, NULL, pView);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pView);
|
|
|
|
return device->funcs.p_vkCreateImageView(device->device, pCreateInfo, NULL, pView);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreatePipelineCache(VkDevice device, const VkPipelineCacheCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkPipelineCache *pPipelineCache)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pPipelineCache);
|
|
|
|
return device->funcs.p_vkCreatePipelineCache(device->device, pCreateInfo, NULL, pPipelineCache);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreatePipelineLayout(VkDevice device, const VkPipelineLayoutCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkPipelineLayout *pPipelineLayout)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pPipelineLayout);
|
|
|
|
return device->funcs.p_vkCreatePipelineLayout(device->device, pCreateInfo, NULL, pPipelineLayout);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateQueryPool(VkDevice device, const VkQueryPoolCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkQueryPool *pQueryPool)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pQueryPool);
|
|
|
|
return device->funcs.p_vkCreateQueryPool(device->device, pCreateInfo, NULL, pQueryPool);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static VkResult WINAPI wine_vkCreateRayTracingPipelinesNV(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkRayTracingPipelineCreateInfoNV *pCreateInfos, const VkAllocationCallbacks *pAllocator, VkPipeline *pPipelines)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkRayTracingPipelineCreateInfoNV_host *pCreateInfos_host;
|
|
|
|
TRACE("%p, 0x%s, %u, %p, %p, %p\n", device, wine_dbgstr_longlong(pipelineCache), createInfoCount, pCreateInfos, pAllocator, pPipelines);
|
|
|
|
|
|
|
|
pCreateInfos_host = convert_VkRayTracingPipelineCreateInfoNV_array_win_to_host(pCreateInfos, createInfoCount);
|
|
|
|
result = device->funcs.p_vkCreateRayTracingPipelinesNV(device->device, pipelineCache, createInfoCount, pCreateInfos_host, NULL, pPipelines);
|
|
|
|
|
|
|
|
free_VkRayTracingPipelineCreateInfoNV_array(pCreateInfos_host, createInfoCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, 0x%s, %u, %p, %p, %p\n", device, wine_dbgstr_longlong(pipelineCache), createInfoCount, pCreateInfos, pAllocator, pPipelines);
|
|
|
|
return device->funcs.p_vkCreateRayTracingPipelinesNV(device->device, pipelineCache, createInfoCount, pCreateInfos, NULL, pPipelines);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateRenderPass(VkDevice device, const VkRenderPassCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkRenderPass *pRenderPass)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pRenderPass);
|
|
|
|
return device->funcs.p_vkCreateRenderPass(device->device, pCreateInfo, NULL, pRenderPass);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static VkResult WINAPI wine_vkCreateRenderPass2KHR(VkDevice device, const VkRenderPassCreateInfo2KHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkRenderPass *pRenderPass)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pRenderPass);
|
|
|
|
return device->funcs.p_vkCreateRenderPass2KHR(device->device, pCreateInfo, NULL, pRenderPass);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateSampler(VkDevice device, const VkSamplerCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSampler *pSampler)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pSampler);
|
|
|
|
return device->funcs.p_vkCreateSampler(device->device, pCreateInfo, NULL, pSampler);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
VkResult WINAPI wine_vkCreateSamplerYcbcrConversion(VkDevice device, const VkSamplerYcbcrConversionCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSamplerYcbcrConversion *pYcbcrConversion)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pYcbcrConversion);
|
|
|
|
return device->funcs.p_vkCreateSamplerYcbcrConversion(device->device, pCreateInfo, NULL, pYcbcrConversion);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static VkResult WINAPI wine_vkCreateSamplerYcbcrConversionKHR(VkDevice device, const VkSamplerYcbcrConversionCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSamplerYcbcrConversion *pYcbcrConversion)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pYcbcrConversion);
|
|
|
|
return device->funcs.p_vkCreateSamplerYcbcrConversionKHR(device->device, pCreateInfo, NULL, pYcbcrConversion);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateSemaphore(VkDevice device, const VkSemaphoreCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSemaphore *pSemaphore)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pSemaphore);
|
|
|
|
return device->funcs.p_vkCreateSemaphore(device->device, pCreateInfo, NULL, pSemaphore);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateShaderModule(VkDevice device, const VkShaderModuleCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkShaderModule *pShaderModule)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pShaderModule);
|
|
|
|
return device->funcs.p_vkCreateShaderModule(device->device, pCreateInfo, NULL, pShaderModule);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSwapchainKHR *pSwapchain)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkSwapchainCreateInfoKHR_host pCreateInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pSwapchain);
|
|
|
|
|
|
|
|
convert_VkSwapchainCreateInfoKHR_win_to_host(pCreateInfo, &pCreateInfo_host);
|
|
|
|
result = device->funcs.p_vkCreateSwapchainKHR(device->device, &pCreateInfo_host, NULL, pSwapchain);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pSwapchain);
|
|
|
|
return device->funcs.p_vkCreateSwapchainKHR(device->device, pCreateInfo, NULL, pSwapchain);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static VkResult WINAPI wine_vkCreateValidationCacheEXT(VkDevice device, const VkValidationCacheCreateInfoEXT *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkValidationCacheEXT *pValidationCache)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pCreateInfo, pAllocator, pValidationCache);
|
|
|
|
return device->funcs.p_vkCreateValidationCacheEXT(device->device, pCreateInfo, NULL, pValidationCache);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkCreateWin32SurfaceKHR(VkInstance instance, const VkWin32SurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p, %p\n", instance, pCreateInfo, pAllocator, pSurface);
|
|
|
|
return instance->funcs.p_vkCreateWin32SurfaceKHR(instance->instance, pCreateInfo, NULL, pSurface);
|
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static void WINAPI wine_vkDestroyAccelerationStructureNV(VkDevice device, VkAccelerationStructureNV accelerationStructure, const VkAllocationCallbacks *pAllocator)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(accelerationStructure), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyAccelerationStructureNV(device->device, accelerationStructure, NULL);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyBuffer(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(buffer), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyBuffer(device->device, buffer, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyBufferView(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(bufferView), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyBufferView(device->device, bufferView, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(descriptorPool), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyDescriptorPool(device->device, descriptorPool, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyDescriptorSetLayout(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(descriptorSetLayout), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyDescriptorSetLayout(device->device, descriptorSetLayout, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkDestroyDescriptorUpdateTemplate(VkDevice device, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const VkAllocationCallbacks *pAllocator)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(descriptorUpdateTemplate), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyDescriptorUpdateTemplate(device->device, descriptorUpdateTemplate, NULL);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkDestroyDescriptorUpdateTemplateKHR(VkDevice device, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const VkAllocationCallbacks *pAllocator)
|
2018-03-15 07:39:40 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(descriptorUpdateTemplate), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyDescriptorUpdateTemplateKHR(device->device, descriptorUpdateTemplate, NULL);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyEvent(VkDevice device, VkEvent event, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(event), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyEvent(device->device, event, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(fence), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyFence(device->device, fence, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyFramebuffer(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(framebuffer), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyFramebuffer(device->device, framebuffer, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyImage(VkDevice device, VkImage image, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(image), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyImage(device->device, image, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyImageView(VkDevice device, VkImageView imageView, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(imageView), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyImageView(device->device, imageView, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyPipeline(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(pipeline), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyPipeline(device->device, pipeline, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyPipelineCache(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(pipelineCache), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyPipelineCache(device->device, pipelineCache, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyPipelineLayout(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(pipelineLayout), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyPipelineLayout(device->device, pipelineLayout, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyQueryPool(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(queryPool), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyQueryPool(device->device, queryPool, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyRenderPass(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(renderPass), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyRenderPass(device->device, renderPass, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroySampler(VkDevice device, VkSampler sampler, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(sampler), pAllocator);
|
|
|
|
device->funcs.p_vkDestroySampler(device->device, sampler, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkDestroySamplerYcbcrConversion(VkDevice device, VkSamplerYcbcrConversion ycbcrConversion, const VkAllocationCallbacks *pAllocator)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(ycbcrConversion), pAllocator);
|
|
|
|
device->funcs.p_vkDestroySamplerYcbcrConversion(device->device, ycbcrConversion, NULL);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkDestroySamplerYcbcrConversionKHR(VkDevice device, VkSamplerYcbcrConversion ycbcrConversion, const VkAllocationCallbacks *pAllocator)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(ycbcrConversion), pAllocator);
|
|
|
|
device->funcs.p_vkDestroySamplerYcbcrConversionKHR(device->device, ycbcrConversion, NULL);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(semaphore), pAllocator);
|
|
|
|
device->funcs.p_vkDestroySemaphore(device->device, semaphore, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroyShaderModule(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(shaderModule), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyShaderModule(device->device, shaderModule, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks *pAllocator)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", instance, wine_dbgstr_longlong(surface), pAllocator);
|
|
|
|
instance->funcs.p_vkDestroySurfaceKHR(instance->instance, surface, NULL);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks *pAllocator)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(swapchain), pAllocator);
|
|
|
|
device->funcs.p_vkDestroySwapchainKHR(device->device, swapchain, NULL);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkDestroyValidationCacheEXT(VkDevice device, VkValidationCacheEXT validationCache, const VkAllocationCallbacks *pAllocator)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(validationCache), pAllocator);
|
|
|
|
device->funcs.p_vkDestroyValidationCacheEXT(device->device, validationCache, NULL);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkDeviceWaitIdle(VkDevice device)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p\n", device);
|
|
|
|
return device->funcs.p_vkDeviceWaitIdle(device->device);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkEndCommandBuffer(VkCommandBuffer commandBuffer)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p\n", commandBuffer);
|
|
|
|
return commandBuffer->device->funcs.p_vkEndCommandBuffer(commandBuffer->command_buffer);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkEnumerateDeviceLayerProperties(VkPhysicalDevice physicalDevice, uint32_t *pPropertyCount, VkLayerProperties *pProperties)
|
2018-03-01 16:37:04 +01:00
|
|
|
{
|
2018-03-09 17:48:46 +01:00
|
|
|
TRACE("%p, %p, %p\n", physicalDevice, pPropertyCount, pProperties);
|
|
|
|
return physicalDevice->instance->funcs.p_vkEnumerateDeviceLayerProperties(physicalDevice->phys_dev, pPropertyCount, pProperties);
|
2018-03-01 16:37:04 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkFlushMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange *pMemoryRanges)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkMappedMemoryRange_host *pMemoryRanges_host;
|
|
|
|
TRACE("%p, %u, %p\n", device, memoryRangeCount, pMemoryRanges);
|
|
|
|
|
|
|
|
pMemoryRanges_host = convert_VkMappedMemoryRange_array_win_to_host(pMemoryRanges, memoryRangeCount);
|
|
|
|
result = device->funcs.p_vkFlushMappedMemoryRanges(device->device, memoryRangeCount, pMemoryRanges_host);
|
|
|
|
|
|
|
|
free_VkMappedMemoryRange_array(pMemoryRanges_host, memoryRangeCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p\n", device, memoryRangeCount, pMemoryRanges);
|
|
|
|
return device->funcs.p_vkFlushMappedMemoryRanges(device->device, memoryRangeCount, pMemoryRanges);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkFreeDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet *pDescriptorSets)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %u, %p\n", device, wine_dbgstr_longlong(descriptorPool), descriptorSetCount, pDescriptorSets);
|
|
|
|
return device->funcs.p_vkFreeDescriptorSets(device->device, descriptorPool, descriptorSetCount, pDescriptorSets);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkFreeMemory(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks *pAllocator)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(memory), pAllocator);
|
|
|
|
device->funcs.p_vkFreeMemory(device->device, memory, NULL);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static VkResult WINAPI wine_vkGetAccelerationStructureHandleNV(VkDevice device, VkAccelerationStructureNV accelerationStructure, size_t dataSize, void *pData)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, %p\n", device, wine_dbgstr_longlong(accelerationStructure), wine_dbgstr_longlong(dataSize), pData);
|
|
|
|
return device->funcs.p_vkGetAccelerationStructureHandleNV(device->device, accelerationStructure, dataSize, pData);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void WINAPI wine_vkGetAccelerationStructureMemoryRequirementsNV(VkDevice device, const VkAccelerationStructureMemoryRequirementsInfoNV *pInfo, VkMemoryRequirements2KHR *pMemoryRequirements)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkAccelerationStructureMemoryRequirementsInfoNV_host pInfo_host;
|
|
|
|
VkMemoryRequirements2KHR_host pMemoryRequirements_host;
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
|
|
|
|
convert_VkAccelerationStructureMemoryRequirementsInfoNV_win_to_host(pInfo, &pInfo_host);
|
|
|
|
convert_VkMemoryRequirements2KHR_win_to_host(pMemoryRequirements, &pMemoryRequirements_host);
|
|
|
|
device->funcs.p_vkGetAccelerationStructureMemoryRequirementsNV(device->device, &pInfo_host, &pMemoryRequirements_host);
|
|
|
|
|
|
|
|
convert_VkMemoryRequirements2KHR_host_to_win(&pMemoryRequirements_host, pMemoryRequirements);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetAccelerationStructureMemoryRequirementsNV(device->device, pInfo, pMemoryRequirements);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetBufferMemoryRequirements(VkDevice device, VkBuffer buffer, VkMemoryRequirements *pMemoryRequirements)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkMemoryRequirements_host pMemoryRequirements_host;
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(buffer), pMemoryRequirements);
|
|
|
|
|
|
|
|
device->funcs.p_vkGetBufferMemoryRequirements(device->device, buffer, &pMemoryRequirements_host);
|
|
|
|
|
|
|
|
convert_VkMemoryRequirements_host_to_win(&pMemoryRequirements_host, pMemoryRequirements);
|
|
|
|
#else
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(buffer), pMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetBufferMemoryRequirements(device->device, buffer, pMemoryRequirements);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetBufferMemoryRequirements2(VkDevice device, const VkBufferMemoryRequirementsInfo2 *pInfo, VkMemoryRequirements2 *pMemoryRequirements)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkBufferMemoryRequirementsInfo2_host pInfo_host;
|
|
|
|
VkMemoryRequirements2_host pMemoryRequirements_host;
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
|
|
|
|
convert_VkBufferMemoryRequirementsInfo2_win_to_host(pInfo, &pInfo_host);
|
|
|
|
convert_VkMemoryRequirements2_win_to_host(pMemoryRequirements, &pMemoryRequirements_host);
|
|
|
|
device->funcs.p_vkGetBufferMemoryRequirements2(device->device, &pInfo_host, &pMemoryRequirements_host);
|
|
|
|
|
|
|
|
convert_VkMemoryRequirements2_host_to_win(&pMemoryRequirements_host, pMemoryRequirements);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetBufferMemoryRequirements2(device->device, pInfo, pMemoryRequirements);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetBufferMemoryRequirements2KHR(VkDevice device, const VkBufferMemoryRequirementsInfo2 *pInfo, VkMemoryRequirements2 *pMemoryRequirements)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkBufferMemoryRequirementsInfo2_host pInfo_host;
|
|
|
|
VkMemoryRequirements2_host pMemoryRequirements_host;
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
|
|
|
|
convert_VkBufferMemoryRequirementsInfo2_win_to_host(pInfo, &pInfo_host);
|
|
|
|
convert_VkMemoryRequirements2_win_to_host(pMemoryRequirements, &pMemoryRequirements_host);
|
|
|
|
device->funcs.p_vkGetBufferMemoryRequirements2KHR(device->device, &pInfo_host, &pMemoryRequirements_host);
|
|
|
|
|
|
|
|
convert_VkMemoryRequirements2_host_to_win(&pMemoryRequirements_host, pMemoryRequirements);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetBufferMemoryRequirements2KHR(device->device, pInfo, pMemoryRequirements);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetDescriptorSetLayoutSupport(VkDevice device, const VkDescriptorSetLayoutCreateInfo *pCreateInfo, VkDescriptorSetLayoutSupport *pSupport)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p\n", device, pCreateInfo, pSupport);
|
|
|
|
device->funcs.p_vkGetDescriptorSetLayoutSupport(device->device, pCreateInfo, pSupport);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetDescriptorSetLayoutSupportKHR(VkDevice device, const VkDescriptorSetLayoutCreateInfo *pCreateInfo, VkDescriptorSetLayoutSupport *pSupport)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p\n", device, pCreateInfo, pSupport);
|
|
|
|
device->funcs.p_vkGetDescriptorSetLayoutSupportKHR(device->device, pCreateInfo, pSupport);
|
|
|
|
}
|
|
|
|
|
2018-07-13 10:55:36 +02:00
|
|
|
void WINAPI wine_vkGetDeviceGroupPeerMemoryFeatures(VkDevice device, uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, VkPeerMemoryFeatureFlags *pPeerMemoryFeatures)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %u, %p\n", device, heapIndex, localDeviceIndex, remoteDeviceIndex, pPeerMemoryFeatures);
|
|
|
|
device->funcs.p_vkGetDeviceGroupPeerMemoryFeatures(device->device, heapIndex, localDeviceIndex, remoteDeviceIndex, pPeerMemoryFeatures);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void WINAPI wine_vkGetDeviceGroupPeerMemoryFeaturesKHR(VkDevice device, uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, VkPeerMemoryFeatureFlags *pPeerMemoryFeatures)
|
|
|
|
{
|
|
|
|
TRACE("%p, %u, %u, %u, %p\n", device, heapIndex, localDeviceIndex, remoteDeviceIndex, pPeerMemoryFeatures);
|
|
|
|
device->funcs.p_vkGetDeviceGroupPeerMemoryFeaturesKHR(device->device, heapIndex, localDeviceIndex, remoteDeviceIndex, pPeerMemoryFeatures);
|
|
|
|
}
|
|
|
|
|
|
|
|
VkResult WINAPI wine_vkGetDeviceGroupPresentCapabilitiesKHR(VkDevice device, VkDeviceGroupPresentCapabilitiesKHR *pDeviceGroupPresentCapabilities)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p\n", device, pDeviceGroupPresentCapabilities);
|
|
|
|
return device->funcs.p_vkGetDeviceGroupPresentCapabilitiesKHR(device->device, pDeviceGroupPresentCapabilities);
|
|
|
|
}
|
|
|
|
|
2018-07-13 10:55:35 +02:00
|
|
|
VkResult WINAPI wine_vkGetDeviceGroupSurfacePresentModesKHR(VkDevice device, VkSurfaceKHR surface, VkDeviceGroupPresentModeFlagsKHR *pModes)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(surface), pModes);
|
|
|
|
return device->funcs.p_vkGetDeviceGroupSurfacePresentModesKHR(device->device, surface, pModes);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetDeviceMemoryCommitment(VkDevice device, VkDeviceMemory memory, VkDeviceSize *pCommittedMemoryInBytes)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(memory), pCommittedMemoryInBytes);
|
|
|
|
device->funcs.p_vkGetDeviceMemoryCommitment(device->device, memory, pCommittedMemoryInBytes);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetEventStatus(VkDevice device, VkEvent event)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s\n", device, wine_dbgstr_longlong(event));
|
|
|
|
return device->funcs.p_vkGetEventStatus(device->device, event);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetFenceStatus(VkDevice device, VkFence fence)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s\n", device, wine_dbgstr_longlong(fence));
|
|
|
|
return device->funcs.p_vkGetFenceStatus(device->device, fence);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetImageMemoryRequirements(VkDevice device, VkImage image, VkMemoryRequirements *pMemoryRequirements)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkMemoryRequirements_host pMemoryRequirements_host;
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(image), pMemoryRequirements);
|
|
|
|
|
|
|
|
device->funcs.p_vkGetImageMemoryRequirements(device->device, image, &pMemoryRequirements_host);
|
|
|
|
|
|
|
|
convert_VkMemoryRequirements_host_to_win(&pMemoryRequirements_host, pMemoryRequirements);
|
|
|
|
#else
|
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(image), pMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetImageMemoryRequirements(device->device, image, pMemoryRequirements);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetImageMemoryRequirements2(VkDevice device, const VkImageMemoryRequirementsInfo2 *pInfo, VkMemoryRequirements2 *pMemoryRequirements)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkImageMemoryRequirementsInfo2_host pInfo_host;
|
|
|
|
VkMemoryRequirements2_host pMemoryRequirements_host;
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
|
|
|
|
convert_VkImageMemoryRequirementsInfo2_win_to_host(pInfo, &pInfo_host);
|
|
|
|
convert_VkMemoryRequirements2_win_to_host(pMemoryRequirements, &pMemoryRequirements_host);
|
|
|
|
device->funcs.p_vkGetImageMemoryRequirements2(device->device, &pInfo_host, &pMemoryRequirements_host);
|
|
|
|
|
|
|
|
convert_VkMemoryRequirements2_host_to_win(&pMemoryRequirements_host, pMemoryRequirements);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetImageMemoryRequirements2(device->device, pInfo, pMemoryRequirements);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetImageMemoryRequirements2KHR(VkDevice device, const VkImageMemoryRequirementsInfo2 *pInfo, VkMemoryRequirements2 *pMemoryRequirements)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkImageMemoryRequirementsInfo2_host pInfo_host;
|
|
|
|
VkMemoryRequirements2_host pMemoryRequirements_host;
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
|
|
|
|
convert_VkImageMemoryRequirementsInfo2_win_to_host(pInfo, &pInfo_host);
|
|
|
|
convert_VkMemoryRequirements2_win_to_host(pMemoryRequirements, &pMemoryRequirements_host);
|
|
|
|
device->funcs.p_vkGetImageMemoryRequirements2KHR(device->device, &pInfo_host, &pMemoryRequirements_host);
|
|
|
|
|
|
|
|
convert_VkMemoryRequirements2_host_to_win(&pMemoryRequirements_host, pMemoryRequirements);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", device, pInfo, pMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetImageMemoryRequirements2KHR(device->device, pInfo, pMemoryRequirements);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetImageSparseMemoryRequirements(VkDevice device, VkImage image, uint32_t *pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements *pSparseMemoryRequirements)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p, %p\n", device, wine_dbgstr_longlong(image), pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetImageSparseMemoryRequirements(device->device, image, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetImageSparseMemoryRequirements2(VkDevice device, const VkImageSparseMemoryRequirementsInfo2 *pInfo, uint32_t *pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2 *pSparseMemoryRequirements)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkImageSparseMemoryRequirementsInfo2_host pInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
|
|
|
|
|
|
convert_VkImageSparseMemoryRequirementsInfo2_win_to_host(pInfo, &pInfo_host);
|
|
|
|
device->funcs.p_vkGetImageSparseMemoryRequirements2(device->device, &pInfo_host, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
|
|
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetImageSparseMemoryRequirements2(device->device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetImageSparseMemoryRequirements2KHR(VkDevice device, const VkImageSparseMemoryRequirementsInfo2 *pInfo, uint32_t *pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2 *pSparseMemoryRequirements)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkImageSparseMemoryRequirementsInfo2_host pInfo_host;
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
|
|
|
|
|
|
convert_VkImageSparseMemoryRequirementsInfo2_win_to_host(pInfo, &pInfo_host);
|
|
|
|
device->funcs.p_vkGetImageSparseMemoryRequirements2KHR(device->device, &pInfo_host, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
|
|
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p, %p\n", device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
|
|
device->funcs.p_vkGetImageSparseMemoryRequirements2KHR(device->device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetImageSubresourceLayout(VkDevice device, VkImage image, const VkImageSubresource *pSubresource, VkSubresourceLayout *pLayout)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkSubresourceLayout_host pLayout_host;
|
|
|
|
TRACE("%p, 0x%s, %p, %p\n", device, wine_dbgstr_longlong(image), pSubresource, pLayout);
|
|
|
|
|
|
|
|
device->funcs.p_vkGetImageSubresourceLayout(device->device, image, pSubresource, &pLayout_host);
|
|
|
|
|
|
|
|
convert_VkSubresourceLayout_host_to_win(&pLayout_host, pLayout);
|
|
|
|
#else
|
|
|
|
TRACE("%p, 0x%s, %p, %p\n", device, wine_dbgstr_longlong(image), pSubresource, pLayout);
|
|
|
|
device->funcs.p_vkGetImageSubresourceLayout(device->device, image, pSubresource, pLayout);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures *pFeatures)
|
2018-03-01 16:37:04 +01:00
|
|
|
{
|
2018-03-09 17:48:46 +01:00
|
|
|
TRACE("%p, %p\n", physicalDevice, pFeatures);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFeatures(physicalDevice->phys_dev, pFeatures);
|
2018-03-01 16:37:04 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2 *pFeatures)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pFeatures);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFeatures2(physicalDevice->phys_dev, pFeatures);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetPhysicalDeviceFeatures2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2 *pFeatures)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pFeatures);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFeatures2KHR(physicalDevice->phys_dev, pFeatures);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties *pFormatProperties)
|
2018-03-01 16:37:04 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, %p\n", physicalDevice, format, pFormatProperties);
|
2018-03-09 17:48:46 +01:00
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFormatProperties(physicalDevice->phys_dev, format, pFormatProperties);
|
2018-03-01 16:37:04 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceFormatProperties2(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties2 *pFormatProperties)
|
|
|
|
{
|
|
|
|
TRACE("%p, %#x, %p\n", physicalDevice, format, pFormatProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFormatProperties2(physicalDevice->phys_dev, format, pFormatProperties);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetPhysicalDeviceFormatProperties2KHR(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties2 *pFormatProperties)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, %p\n", physicalDevice, format, pFormatProperties);
|
2018-03-15 07:39:38 +01:00
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFormatProperties2KHR(physicalDevice->phys_dev, format, pFormatProperties);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties *pImageFormatProperties)
|
2018-03-01 16:37:04 +01:00
|
|
|
{
|
2018-03-09 17:48:46 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkImageFormatProperties_host pImageFormatProperties_host;
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, %#x, %#x, %#x, %#x, %p\n", physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties);
|
2018-03-09 17:48:46 +01:00
|
|
|
|
|
|
|
result = physicalDevice->instance->funcs.p_vkGetPhysicalDeviceImageFormatProperties(physicalDevice->phys_dev, format, type, tiling, usage, flags, &pImageFormatProperties_host);
|
|
|
|
|
|
|
|
convert_VkImageFormatProperties_host_to_win(&pImageFormatProperties_host, pImageFormatProperties);
|
|
|
|
return result;
|
|
|
|
#else
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, %#x, %#x, %#x, %#x, %p\n", physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties);
|
2018-03-09 17:48:46 +01:00
|
|
|
return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceImageFormatProperties(physicalDevice->phys_dev, format, type, tiling, usage, flags, pImageFormatProperties);
|
|
|
|
#endif
|
2018-03-01 16:37:04 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
VkResult WINAPI wine_vkGetPhysicalDeviceImageFormatProperties2(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2 *pImageFormatInfo, VkImageFormatProperties2 *pImageFormatProperties)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkImageFormatProperties2_host pImageFormatProperties_host;
|
|
|
|
TRACE("%p, %p, %p\n", physicalDevice, pImageFormatInfo, pImageFormatProperties);
|
|
|
|
|
|
|
|
convert_VkImageFormatProperties2_win_to_host(pImageFormatProperties, &pImageFormatProperties_host);
|
|
|
|
result = physicalDevice->instance->funcs.p_vkGetPhysicalDeviceImageFormatProperties2(physicalDevice->phys_dev, pImageFormatInfo, &pImageFormatProperties_host);
|
|
|
|
|
|
|
|
convert_VkImageFormatProperties2_host_to_win(&pImageFormatProperties_host, pImageFormatProperties);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", physicalDevice, pImageFormatInfo, pImageFormatProperties);
|
|
|
|
return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceImageFormatProperties2(physicalDevice->phys_dev, pImageFormatInfo, pImageFormatProperties);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static VkResult WINAPI wine_vkGetPhysicalDeviceImageFormatProperties2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2 *pImageFormatInfo, VkImageFormatProperties2 *pImageFormatProperties)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
2018-06-06 11:11:53 +02:00
|
|
|
VkImageFormatProperties2_host pImageFormatProperties_host;
|
2018-03-15 07:39:38 +01:00
|
|
|
TRACE("%p, %p, %p\n", physicalDevice, pImageFormatInfo, pImageFormatProperties);
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
convert_VkImageFormatProperties2_win_to_host(pImageFormatProperties, &pImageFormatProperties_host);
|
2018-03-15 07:39:38 +01:00
|
|
|
result = physicalDevice->instance->funcs.p_vkGetPhysicalDeviceImageFormatProperties2KHR(physicalDevice->phys_dev, pImageFormatInfo, &pImageFormatProperties_host);
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
convert_VkImageFormatProperties2_host_to_win(&pImageFormatProperties_host, pImageFormatProperties);
|
2018-03-15 07:39:38 +01:00
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p, %p\n", physicalDevice, pImageFormatInfo, pImageFormatProperties);
|
|
|
|
return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceImageFormatProperties2KHR(physicalDevice->phys_dev, pImageFormatInfo, pImageFormatProperties);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceMemoryProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties *pMemoryProperties)
|
2018-03-01 16:37:04 +01:00
|
|
|
{
|
2018-03-09 17:48:46 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkPhysicalDeviceMemoryProperties_host pMemoryProperties_host;
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pMemoryProperties);
|
|
|
|
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceMemoryProperties(physicalDevice->phys_dev, &pMemoryProperties_host);
|
|
|
|
|
|
|
|
convert_VkPhysicalDeviceMemoryProperties_host_to_win(&pMemoryProperties_host, pMemoryProperties);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pMemoryProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceMemoryProperties(physicalDevice->phys_dev, pMemoryProperties);
|
|
|
|
#endif
|
2018-03-01 16:37:04 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceMemoryProperties2(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2 *pMemoryProperties)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkPhysicalDeviceMemoryProperties2_host pMemoryProperties_host;
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pMemoryProperties);
|
|
|
|
|
|
|
|
convert_VkPhysicalDeviceMemoryProperties2_win_to_host(pMemoryProperties, &pMemoryProperties_host);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceMemoryProperties2(physicalDevice->phys_dev, &pMemoryProperties_host);
|
|
|
|
|
|
|
|
convert_VkPhysicalDeviceMemoryProperties2_host_to_win(&pMemoryProperties_host, pMemoryProperties);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pMemoryProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceMemoryProperties2(physicalDevice->phys_dev, pMemoryProperties);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetPhysicalDeviceMemoryProperties2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2 *pMemoryProperties)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
2018-06-06 11:11:53 +02:00
|
|
|
VkPhysicalDeviceMemoryProperties2_host pMemoryProperties_host;
|
2018-03-15 07:39:38 +01:00
|
|
|
TRACE("%p, %p\n", physicalDevice, pMemoryProperties);
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
convert_VkPhysicalDeviceMemoryProperties2_win_to_host(pMemoryProperties, &pMemoryProperties_host);
|
2018-03-15 07:39:38 +01:00
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceMemoryProperties2KHR(physicalDevice->phys_dev, &pMemoryProperties_host);
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
convert_VkPhysicalDeviceMemoryProperties2_host_to_win(&pMemoryProperties_host, pMemoryProperties);
|
2018-03-15 07:39:38 +01:00
|
|
|
#else
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pMemoryProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceMemoryProperties2KHR(physicalDevice->phys_dev, pMemoryProperties);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetPhysicalDeviceMultisamplePropertiesEXT(VkPhysicalDevice physicalDevice, VkSampleCountFlagBits samples, VkMultisamplePropertiesEXT *pMultisampleProperties)
|
|
|
|
{
|
|
|
|
TRACE("%p, %#x, %p\n", physicalDevice, samples, pMultisampleProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceMultisamplePropertiesEXT(physicalDevice->phys_dev, samples, pMultisampleProperties);
|
|
|
|
}
|
|
|
|
|
2018-07-13 10:55:35 +02:00
|
|
|
VkResult WINAPI wine_vkGetPhysicalDevicePresentRectanglesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t *pRectCount, VkRect2D *pRects)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p, %p\n", physicalDevice, wine_dbgstr_longlong(surface), pRectCount, pRects);
|
|
|
|
return physicalDevice->instance->funcs.p_vkGetPhysicalDevicePresentRectanglesKHR(physicalDevice->phys_dev, surface, pRectCount, pRects);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties *pProperties)
|
2018-03-01 16:37:04 +01:00
|
|
|
{
|
2018-03-09 17:48:46 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkPhysicalDeviceProperties_host pProperties_host;
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pProperties);
|
|
|
|
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceProperties(physicalDevice->phys_dev, &pProperties_host);
|
|
|
|
|
|
|
|
convert_VkPhysicalDeviceProperties_host_to_win(&pProperties_host, pProperties);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceProperties(physicalDevice->phys_dev, pProperties);
|
|
|
|
#endif
|
2018-03-01 16:37:04 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2 *pProperties)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkPhysicalDeviceProperties2_host pProperties_host;
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pProperties);
|
|
|
|
|
|
|
|
convert_VkPhysicalDeviceProperties2_win_to_host(pProperties, &pProperties_host);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceProperties2(physicalDevice->phys_dev, &pProperties_host);
|
|
|
|
|
|
|
|
convert_VkPhysicalDeviceProperties2_host_to_win(&pProperties_host, pProperties);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceProperties2(physicalDevice->phys_dev, pProperties);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetPhysicalDeviceProperties2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2 *pProperties)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
2018-06-06 11:11:53 +02:00
|
|
|
VkPhysicalDeviceProperties2_host pProperties_host;
|
2018-03-15 07:39:38 +01:00
|
|
|
TRACE("%p, %p\n", physicalDevice, pProperties);
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
convert_VkPhysicalDeviceProperties2_win_to_host(pProperties, &pProperties_host);
|
2018-03-15 07:39:38 +01:00
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceProperties2KHR(physicalDevice->phys_dev, &pProperties_host);
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
convert_VkPhysicalDeviceProperties2_host_to_win(&pProperties_host, pProperties);
|
2018-03-15 07:39:38 +01:00
|
|
|
#else
|
|
|
|
TRACE("%p, %p\n", physicalDevice, pProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceProperties2KHR(physicalDevice->phys_dev, pProperties);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceQueueFamilyProperties(VkPhysicalDevice physicalDevice, uint32_t *pQueueFamilyPropertyCount, VkQueueFamilyProperties *pQueueFamilyProperties)
|
2018-03-01 16:37:04 +01:00
|
|
|
{
|
2018-03-09 17:48:46 +01:00
|
|
|
TRACE("%p, %p, %p\n", physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceQueueFamilyProperties(physicalDevice->phys_dev, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
2018-03-01 16:37:04 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceQueueFamilyProperties2(VkPhysicalDevice physicalDevice, uint32_t *pQueueFamilyPropertyCount, VkQueueFamilyProperties2 *pQueueFamilyProperties)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p\n", physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceQueueFamilyProperties2(physicalDevice->phys_dev, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetPhysicalDeviceQueueFamilyProperties2KHR(VkPhysicalDevice physicalDevice, uint32_t *pQueueFamilyPropertyCount, VkQueueFamilyProperties2 *pQueueFamilyProperties)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p\n", physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceQueueFamilyProperties2KHR(physicalDevice->phys_dev, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t *pPropertyCount, VkSparseImageFormatProperties *pProperties)
|
2018-03-01 16:37:04 +01:00
|
|
|
{
|
2018-03-29 14:53:52 +02:00
|
|
|
TRACE("%p, %#x, %#x, %#x, %#x, %#x, %p, %p\n", physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties);
|
2018-03-09 17:48:46 +01:00
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSparseImageFormatProperties(physicalDevice->phys_dev, format, type, samples, usage, tiling, pPropertyCount, pProperties);
|
2018-03-01 16:37:04 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkGetPhysicalDeviceSparseImageFormatProperties2(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2 *pFormatInfo, uint32_t *pPropertyCount, VkSparseImageFormatProperties2 *pProperties)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p, %p\n", physicalDevice, pFormatInfo, pPropertyCount, pProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSparseImageFormatProperties2(physicalDevice->phys_dev, pFormatInfo, pPropertyCount, pProperties);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkGetPhysicalDeviceSparseImageFormatProperties2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2 *pFormatInfo, uint32_t *pPropertyCount, VkSparseImageFormatProperties2 *pProperties)
|
2018-03-15 07:39:38 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p, %p\n", physicalDevice, pFormatInfo, pPropertyCount, pProperties);
|
|
|
|
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSparseImageFormatProperties2KHR(physicalDevice->phys_dev, pFormatInfo, pPropertyCount, pProperties);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR *pSurfaceCapabilities)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p\n", physicalDevice, wine_dbgstr_longlong(surface), pSurfaceCapabilities);
|
|
|
|
return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSurfaceCapabilitiesKHR(physicalDevice->phys_dev, surface, pSurfaceCapabilities);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t *pSurfaceFormatCount, VkSurfaceFormatKHR *pSurfaceFormats)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p, %p\n", physicalDevice, wine_dbgstr_longlong(surface), pSurfaceFormatCount, pSurfaceFormats);
|
|
|
|
return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice->phys_dev, surface, pSurfaceFormatCount, pSurfaceFormats);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t *pPresentModeCount, VkPresentModeKHR *pPresentModes)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p, %p\n", physicalDevice, wine_dbgstr_longlong(surface), pPresentModeCount, pPresentModes);
|
|
|
|
return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSurfacePresentModesKHR(physicalDevice->phys_dev, surface, pPresentModeCount, pPresentModes);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32 *pSupported)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, %u, 0x%s, %p\n", physicalDevice, queueFamilyIndex, wine_dbgstr_longlong(surface), pSupported);
|
|
|
|
return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSurfaceSupportKHR(physicalDevice->phys_dev, queueFamilyIndex, surface, pSupported);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkBool32 WINAPI wine_vkGetPhysicalDeviceWin32PresentationSupportKHR(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, %u\n", physicalDevice, queueFamilyIndex);
|
|
|
|
return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceWin32PresentationSupportKHR(physicalDevice->phys_dev, queueFamilyIndex);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetPipelineCacheData(VkDevice device, VkPipelineCache pipelineCache, size_t *pDataSize, void *pData)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p, %p\n", device, wine_dbgstr_longlong(pipelineCache), pDataSize, pData);
|
|
|
|
return device->funcs.p_vkGetPipelineCacheData(device->device, pipelineCache, pDataSize, pData);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetQueryPoolResults(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void *pData, VkDeviceSize stride, VkQueryResultFlags flags)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %u, %u, 0x%s, %p, 0x%s, %#x\n", device, wine_dbgstr_longlong(queryPool), firstQuery, queryCount, wine_dbgstr_longlong(dataSize), pData, wine_dbgstr_longlong(stride), flags);
|
|
|
|
return device->funcs.p_vkGetQueryPoolResults(device->device, queryPool, firstQuery, queryCount, dataSize, pData, stride, flags);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-10-05 16:55:20 +02:00
|
|
|
static void WINAPI wine_vkGetQueueCheckpointDataNV(VkQueue queue, uint32_t *pCheckpointDataCount, VkCheckpointDataNV *pCheckpointData)
|
|
|
|
{
|
|
|
|
TRACE("%p, %p, %p\n", queue, pCheckpointDataCount, pCheckpointData);
|
|
|
|
queue->device->funcs.p_vkGetQueueCheckpointDataNV(queue->queue, pCheckpointDataCount, pCheckpointData);
|
|
|
|
}
|
|
|
|
|
2018-11-26 12:13:45 +01:00
|
|
|
static VkResult WINAPI wine_vkGetRayTracingShaderGroupHandlesNV(VkDevice device, VkPipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void *pData)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %u, %u, 0x%s, %p\n", device, wine_dbgstr_longlong(pipeline), firstGroup, groupCount, wine_dbgstr_longlong(dataSize), pData);
|
|
|
|
return device->funcs.p_vkGetRayTracingShaderGroupHandlesNV(device->device, pipeline, firstGroup, groupCount, dataSize, pData);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkGetRenderAreaGranularity(VkDevice device, VkRenderPass renderPass, VkExtent2D *pGranularity)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(renderPass), pGranularity);
|
|
|
|
device->funcs.p_vkGetRenderAreaGranularity(device->device, renderPass, pGranularity);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static VkResult WINAPI wine_vkGetShaderInfoAMD(VkDevice device, VkPipeline pipeline, VkShaderStageFlagBits shaderStage, VkShaderInfoTypeAMD infoType, size_t *pInfoSize, void *pInfo)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %#x, %#x, %p, %p\n", device, wine_dbgstr_longlong(pipeline), shaderStage, infoType, pInfoSize, pInfo);
|
|
|
|
return device->funcs.p_vkGetShaderInfoAMD(device->device, pipeline, shaderStage, infoType, pInfoSize, pInfo);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR swapchain, uint32_t *pSwapchainImageCount, VkImage *pSwapchainImages)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p, %p\n", device, wine_dbgstr_longlong(swapchain), pSwapchainImageCount, pSwapchainImages);
|
|
|
|
return device->funcs.p_vkGetSwapchainImagesKHR(device->device, swapchain, pSwapchainImageCount, pSwapchainImages);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static VkResult WINAPI wine_vkGetValidationCacheDataEXT(VkDevice device, VkValidationCacheEXT validationCache, size_t *pDataSize, void *pData)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %p, %p\n", device, wine_dbgstr_longlong(validationCache), pDataSize, pData);
|
|
|
|
return device->funcs.p_vkGetValidationCacheDataEXT(device->device, validationCache, pDataSize, pData);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkInvalidateMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange *pMemoryRanges)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkMappedMemoryRange_host *pMemoryRanges_host;
|
|
|
|
TRACE("%p, %u, %p\n", device, memoryRangeCount, pMemoryRanges);
|
|
|
|
|
|
|
|
pMemoryRanges_host = convert_VkMappedMemoryRange_array_win_to_host(pMemoryRanges, memoryRangeCount);
|
|
|
|
result = device->funcs.p_vkInvalidateMappedMemoryRanges(device->device, memoryRangeCount, pMemoryRanges_host);
|
|
|
|
|
|
|
|
free_VkMappedMemoryRange_array(pMemoryRanges_host, memoryRangeCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p\n", device, memoryRangeCount, pMemoryRanges);
|
|
|
|
return device->funcs.p_vkInvalidateMappedMemoryRanges(device->device, memoryRangeCount, pMemoryRanges);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkMapMemory(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void **ppData)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, 0x%s, 0x%s, %#x, %p\n", device, wine_dbgstr_longlong(memory), wine_dbgstr_longlong(offset), wine_dbgstr_longlong(size), flags, ppData);
|
|
|
|
return device->funcs.p_vkMapMemory(device->device, memory, offset, size, flags, ppData);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkMergePipelineCaches(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache *pSrcCaches)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %u, %p\n", device, wine_dbgstr_longlong(dstCache), srcCacheCount, pSrcCaches);
|
|
|
|
return device->funcs.p_vkMergePipelineCaches(device->device, dstCache, srcCacheCount, pSrcCaches);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static VkResult WINAPI wine_vkMergeValidationCachesEXT(VkDevice device, VkValidationCacheEXT dstCache, uint32_t srcCacheCount, const VkValidationCacheEXT *pSrcCaches)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %u, %p\n", device, wine_dbgstr_longlong(dstCache), srcCacheCount, pSrcCaches);
|
|
|
|
return device->funcs.p_vkMergeValidationCachesEXT(device->device, dstCache, srcCacheCount, pSrcCaches);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkQueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo *pBindInfo, VkFence fence)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-15 07:39:36 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkResult result;
|
|
|
|
VkBindSparseInfo_host *pBindInfo_host;
|
|
|
|
TRACE("%p, %u, %p, 0x%s\n", queue, bindInfoCount, pBindInfo, wine_dbgstr_longlong(fence));
|
|
|
|
|
|
|
|
pBindInfo_host = convert_VkBindSparseInfo_array_win_to_host(pBindInfo, bindInfoCount);
|
|
|
|
result = queue->device->funcs.p_vkQueueBindSparse(queue->queue, bindInfoCount, pBindInfo_host, fence);
|
|
|
|
|
|
|
|
free_VkBindSparseInfo_array(pBindInfo_host, bindInfoCount);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p, 0x%s\n", queue, bindInfoCount, pBindInfo, wine_dbgstr_longlong(fence));
|
|
|
|
return queue->device->funcs.p_vkQueueBindSparse(queue->queue, bindInfoCount, pBindInfo, fence);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkQueuePresentKHR(VkQueue queue, const VkPresentInfoKHR *pPresentInfo)
|
2018-03-24 14:28:05 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, %p\n", queue, pPresentInfo);
|
|
|
|
return queue->device->funcs.p_vkQueuePresentKHR(queue->queue, pPresentInfo);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkQueueWaitIdle(VkQueue queue)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-15 07:39:36 +01:00
|
|
|
TRACE("%p\n", queue);
|
|
|
|
return queue->device->funcs.p_vkQueueWaitIdle(queue->queue);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkResetCommandBuffer(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:56 +01:00
|
|
|
TRACE("%p, %#x\n", commandBuffer, flags);
|
|
|
|
return commandBuffer->device->funcs.p_vkResetCommandBuffer(commandBuffer->command_buffer, flags);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkResetCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %#x\n", device, wine_dbgstr_longlong(commandPool), flags);
|
2018-08-30 12:22:31 +02:00
|
|
|
return device->funcs.p_vkResetCommandPool(device->device, wine_cmd_pool_from_handle(commandPool)->command_pool, flags);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkResetDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s, %#x\n", device, wine_dbgstr_longlong(descriptorPool), flags);
|
|
|
|
return device->funcs.p_vkResetDescriptorPool(device->device, descriptorPool, flags);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkResetEvent(VkDevice device, VkEvent event)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s\n", device, wine_dbgstr_longlong(event));
|
|
|
|
return device->funcs.p_vkResetEvent(device->device, event);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkResetFences(VkDevice device, uint32_t fenceCount, const VkFence *pFences)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %u, %p\n", device, fenceCount, pFences);
|
|
|
|
return device->funcs.p_vkResetFences(device->device, fenceCount, pFences);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkSetEvent(VkDevice device, VkEvent event)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s\n", device, wine_dbgstr_longlong(event));
|
|
|
|
return device->funcs.p_vkSetEvent(device->device, event);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkTrimCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlags flags)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %#x\n", device, wine_dbgstr_longlong(commandPool), flags);
|
2018-08-30 12:22:31 +02:00
|
|
|
device->funcs.p_vkTrimCommandPool(device->device, wine_cmd_pool_from_handle(commandPool)->command_pool, flags);
|
2018-07-12 11:39:39 +02:00
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkTrimCommandPoolKHR(VkDevice device, VkCommandPool commandPool, VkCommandPoolTrimFlags flags)
|
2018-03-15 07:39:40 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, %#x\n", device, wine_dbgstr_longlong(commandPool), flags);
|
2018-08-30 12:22:31 +02:00
|
|
|
device->funcs.p_vkTrimCommandPoolKHR(device->device, wine_cmd_pool_from_handle(commandPool)->command_pool, flags);
|
2018-03-15 07:39:40 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkUnmapMemory(VkDevice device, VkDeviceMemory memory)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, 0x%s\n", device, wine_dbgstr_longlong(memory));
|
|
|
|
device->funcs.p_vkUnmapMemory(device->device, memory);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 11:39:39 +02:00
|
|
|
void WINAPI wine_vkUpdateDescriptorSetWithTemplate(VkDevice device, VkDescriptorSet descriptorSet, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const void *pData)
|
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, %p\n", device, wine_dbgstr_longlong(descriptorSet), wine_dbgstr_longlong(descriptorUpdateTemplate), pData);
|
|
|
|
device->funcs.p_vkUpdateDescriptorSetWithTemplate(device->device, descriptorSet, descriptorUpdateTemplate, pData);
|
|
|
|
}
|
|
|
|
|
2018-06-06 11:11:53 +02:00
|
|
|
static void WINAPI wine_vkUpdateDescriptorSetWithTemplateKHR(VkDevice device, VkDescriptorSet descriptorSet, VkDescriptorUpdateTemplate descriptorUpdateTemplate, const void *pData)
|
2018-03-15 07:39:40 +01:00
|
|
|
{
|
|
|
|
TRACE("%p, 0x%s, 0x%s, %p\n", device, wine_dbgstr_longlong(descriptorSet), wine_dbgstr_longlong(descriptorUpdateTemplate), pData);
|
|
|
|
device->funcs.p_vkUpdateDescriptorSetWithTemplateKHR(device->device, descriptorSet, descriptorUpdateTemplate, pData);
|
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
void WINAPI wine_vkUpdateDescriptorSets(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet *pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet *pDescriptorCopies)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
VkWriteDescriptorSet_host *pDescriptorWrites_host;
|
|
|
|
VkCopyDescriptorSet_host *pDescriptorCopies_host;
|
|
|
|
TRACE("%p, %u, %p, %u, %p\n", device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies);
|
|
|
|
|
|
|
|
pDescriptorWrites_host = convert_VkWriteDescriptorSet_array_win_to_host(pDescriptorWrites, descriptorWriteCount);
|
|
|
|
pDescriptorCopies_host = convert_VkCopyDescriptorSet_array_win_to_host(pDescriptorCopies, descriptorCopyCount);
|
|
|
|
device->funcs.p_vkUpdateDescriptorSets(device->device, descriptorWriteCount, pDescriptorWrites_host, descriptorCopyCount, pDescriptorCopies_host);
|
|
|
|
|
|
|
|
free_VkWriteDescriptorSet_array(pDescriptorWrites_host, descriptorWriteCount);
|
|
|
|
free_VkCopyDescriptorSet_array(pDescriptorCopies_host, descriptorCopyCount);
|
|
|
|
#else
|
|
|
|
TRACE("%p, %u, %p, %u, %p\n", device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies);
|
|
|
|
device->funcs.p_vkUpdateDescriptorSets(device->device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies);
|
|
|
|
#endif
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:20:49 +02:00
|
|
|
VkResult WINAPI wine_vkWaitForFences(VkDevice device, uint32_t fenceCount, const VkFence *pFences, VkBool32 waitAll, uint64_t timeout)
|
2018-03-09 17:48:47 +01:00
|
|
|
{
|
2018-03-14 13:11:53 +01:00
|
|
|
TRACE("%p, %u, %p, %u, 0x%s\n", device, fenceCount, pFences, waitAll, wine_dbgstr_longlong(timeout));
|
|
|
|
return device->funcs.p_vkWaitForFences(device->device, fenceCount, pFences, waitAll, timeout);
|
2018-03-09 17:48:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static const struct vulkan_func vk_device_dispatch_table[] =
|
|
|
|
{
|
2018-07-13 10:55:36 +02:00
|
|
|
{"vkAcquireNextImage2KHR", &wine_vkAcquireNextImage2KHR},
|
2018-03-12 15:37:53 +01:00
|
|
|
{"vkAcquireNextImageKHR", &wine_vkAcquireNextImageKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkAllocateCommandBuffers", &wine_vkAllocateCommandBuffers},
|
|
|
|
{"vkAllocateDescriptorSets", &wine_vkAllocateDescriptorSets},
|
|
|
|
{"vkAllocateMemory", &wine_vkAllocateMemory},
|
|
|
|
{"vkBeginCommandBuffer", &wine_vkBeginCommandBuffer},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkBindAccelerationStructureMemoryNV", &wine_vkBindAccelerationStructureMemoryNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkBindBufferMemory", &wine_vkBindBufferMemory},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkBindBufferMemory2", &wine_vkBindBufferMemory2},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkBindBufferMemory2KHR", &wine_vkBindBufferMemory2KHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkBindImageMemory", &wine_vkBindImageMemory},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkBindImageMemory2", &wine_vkBindImageMemory2},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkBindImageMemory2KHR", &wine_vkBindImageMemory2KHR},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCmdBeginConditionalRenderingEXT", &wine_vkCmdBeginConditionalRenderingEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdBeginQuery", &wine_vkCmdBeginQuery},
|
2018-10-15 11:40:19 +02:00
|
|
|
{"vkCmdBeginQueryIndexedEXT", &wine_vkCmdBeginQueryIndexedEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdBeginRenderPass", &wine_vkCmdBeginRenderPass},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCmdBeginRenderPass2KHR", &wine_vkCmdBeginRenderPass2KHR},
|
2018-10-15 11:40:19 +02:00
|
|
|
{"vkCmdBeginTransformFeedbackEXT", &wine_vkCmdBeginTransformFeedbackEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdBindDescriptorSets", &wine_vkCmdBindDescriptorSets},
|
|
|
|
{"vkCmdBindIndexBuffer", &wine_vkCmdBindIndexBuffer},
|
|
|
|
{"vkCmdBindPipeline", &wine_vkCmdBindPipeline},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCmdBindShadingRateImageNV", &wine_vkCmdBindShadingRateImageNV},
|
2018-10-15 11:40:19 +02:00
|
|
|
{"vkCmdBindTransformFeedbackBuffersEXT", &wine_vkCmdBindTransformFeedbackBuffersEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdBindVertexBuffers", &wine_vkCmdBindVertexBuffers},
|
|
|
|
{"vkCmdBlitImage", &wine_vkCmdBlitImage},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkCmdBuildAccelerationStructureNV", &wine_vkCmdBuildAccelerationStructureNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdClearAttachments", &wine_vkCmdClearAttachments},
|
|
|
|
{"vkCmdClearColorImage", &wine_vkCmdClearColorImage},
|
|
|
|
{"vkCmdClearDepthStencilImage", &wine_vkCmdClearDepthStencilImage},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkCmdCopyAccelerationStructureNV", &wine_vkCmdCopyAccelerationStructureNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdCopyBuffer", &wine_vkCmdCopyBuffer},
|
|
|
|
{"vkCmdCopyBufferToImage", &wine_vkCmdCopyBufferToImage},
|
|
|
|
{"vkCmdCopyImage", &wine_vkCmdCopyImage},
|
|
|
|
{"vkCmdCopyImageToBuffer", &wine_vkCmdCopyImageToBuffer},
|
|
|
|
{"vkCmdCopyQueryPoolResults", &wine_vkCmdCopyQueryPoolResults},
|
|
|
|
{"vkCmdDispatch", &wine_vkCmdDispatch},
|
2018-07-13 10:55:36 +02:00
|
|
|
{"vkCmdDispatchBase", &wine_vkCmdDispatchBase},
|
|
|
|
{"vkCmdDispatchBaseKHR", &wine_vkCmdDispatchBaseKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdDispatchIndirect", &wine_vkCmdDispatchIndirect},
|
|
|
|
{"vkCmdDraw", &wine_vkCmdDraw},
|
|
|
|
{"vkCmdDrawIndexed", &wine_vkCmdDrawIndexed},
|
|
|
|
{"vkCmdDrawIndexedIndirect", &wine_vkCmdDrawIndexedIndirect},
|
2018-03-15 07:39:40 +01:00
|
|
|
{"vkCmdDrawIndexedIndirectCountAMD", &wine_vkCmdDrawIndexedIndirectCountAMD},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkCmdDrawIndexedIndirectCountKHR", &wine_vkCmdDrawIndexedIndirectCountKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdDrawIndirect", &wine_vkCmdDrawIndirect},
|
2018-10-15 11:40:19 +02:00
|
|
|
{"vkCmdDrawIndirectByteCountEXT", &wine_vkCmdDrawIndirectByteCountEXT},
|
2018-03-15 07:39:40 +01:00
|
|
|
{"vkCmdDrawIndirectCountAMD", &wine_vkCmdDrawIndirectCountAMD},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkCmdDrawIndirectCountKHR", &wine_vkCmdDrawIndirectCountKHR},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCmdDrawMeshTasksIndirectCountNV", &wine_vkCmdDrawMeshTasksIndirectCountNV},
|
|
|
|
{"vkCmdDrawMeshTasksIndirectNV", &wine_vkCmdDrawMeshTasksIndirectNV},
|
|
|
|
{"vkCmdDrawMeshTasksNV", &wine_vkCmdDrawMeshTasksNV},
|
|
|
|
{"vkCmdEndConditionalRenderingEXT", &wine_vkCmdEndConditionalRenderingEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdEndQuery", &wine_vkCmdEndQuery},
|
2018-10-15 11:40:19 +02:00
|
|
|
{"vkCmdEndQueryIndexedEXT", &wine_vkCmdEndQueryIndexedEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdEndRenderPass", &wine_vkCmdEndRenderPass},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCmdEndRenderPass2KHR", &wine_vkCmdEndRenderPass2KHR},
|
2018-10-15 11:40:19 +02:00
|
|
|
{"vkCmdEndTransformFeedbackEXT", &wine_vkCmdEndTransformFeedbackEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdExecuteCommands", &wine_vkCmdExecuteCommands},
|
|
|
|
{"vkCmdFillBuffer", &wine_vkCmdFillBuffer},
|
|
|
|
{"vkCmdNextSubpass", &wine_vkCmdNextSubpass},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCmdNextSubpass2KHR", &wine_vkCmdNextSubpass2KHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdPipelineBarrier", &wine_vkCmdPipelineBarrier},
|
|
|
|
{"vkCmdPushConstants", &wine_vkCmdPushConstants},
|
2018-03-15 07:39:40 +01:00
|
|
|
{"vkCmdPushDescriptorSetKHR", &wine_vkCmdPushDescriptorSetKHR},
|
|
|
|
{"vkCmdPushDescriptorSetWithTemplateKHR", &wine_vkCmdPushDescriptorSetWithTemplateKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdResetEvent", &wine_vkCmdResetEvent},
|
|
|
|
{"vkCmdResetQueryPool", &wine_vkCmdResetQueryPool},
|
|
|
|
{"vkCmdResolveImage", &wine_vkCmdResolveImage},
|
|
|
|
{"vkCmdSetBlendConstants", &wine_vkCmdSetBlendConstants},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCmdSetCheckpointNV", &wine_vkCmdSetCheckpointNV},
|
|
|
|
{"vkCmdSetCoarseSampleOrderNV", &wine_vkCmdSetCoarseSampleOrderNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdSetDepthBias", &wine_vkCmdSetDepthBias},
|
|
|
|
{"vkCmdSetDepthBounds", &wine_vkCmdSetDepthBounds},
|
2018-07-13 10:55:36 +02:00
|
|
|
{"vkCmdSetDeviceMask", &wine_vkCmdSetDeviceMask},
|
|
|
|
{"vkCmdSetDeviceMaskKHR", &wine_vkCmdSetDeviceMaskKHR},
|
2018-03-15 07:39:40 +01:00
|
|
|
{"vkCmdSetDiscardRectangleEXT", &wine_vkCmdSetDiscardRectangleEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdSetEvent", &wine_vkCmdSetEvent},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCmdSetExclusiveScissorNV", &wine_vkCmdSetExclusiveScissorNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdSetLineWidth", &wine_vkCmdSetLineWidth},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkCmdSetSampleLocationsEXT", &wine_vkCmdSetSampleLocationsEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdSetScissor", &wine_vkCmdSetScissor},
|
|
|
|
{"vkCmdSetStencilCompareMask", &wine_vkCmdSetStencilCompareMask},
|
|
|
|
{"vkCmdSetStencilReference", &wine_vkCmdSetStencilReference},
|
|
|
|
{"vkCmdSetStencilWriteMask", &wine_vkCmdSetStencilWriteMask},
|
|
|
|
{"vkCmdSetViewport", &wine_vkCmdSetViewport},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCmdSetViewportShadingRatePaletteNV", &wine_vkCmdSetViewportShadingRatePaletteNV},
|
2018-03-15 07:39:40 +01:00
|
|
|
{"vkCmdSetViewportWScalingNV", &wine_vkCmdSetViewportWScalingNV},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkCmdTraceRaysNV", &wine_vkCmdTraceRaysNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdUpdateBuffer", &wine_vkCmdUpdateBuffer},
|
|
|
|
{"vkCmdWaitEvents", &wine_vkCmdWaitEvents},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkCmdWriteAccelerationStructuresPropertiesNV", &wine_vkCmdWriteAccelerationStructuresPropertiesNV},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkCmdWriteBufferMarkerAMD", &wine_vkCmdWriteBufferMarkerAMD},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCmdWriteTimestamp", &wine_vkCmdWriteTimestamp},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkCompileDeferredNV", &wine_vkCompileDeferredNV},
|
|
|
|
{"vkCreateAccelerationStructureNV", &wine_vkCreateAccelerationStructureNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCreateBuffer", &wine_vkCreateBuffer},
|
|
|
|
{"vkCreateBufferView", &wine_vkCreateBufferView},
|
|
|
|
{"vkCreateCommandPool", &wine_vkCreateCommandPool},
|
|
|
|
{"vkCreateComputePipelines", &wine_vkCreateComputePipelines},
|
|
|
|
{"vkCreateDescriptorPool", &wine_vkCreateDescriptorPool},
|
|
|
|
{"vkCreateDescriptorSetLayout", &wine_vkCreateDescriptorSetLayout},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkCreateDescriptorUpdateTemplate", &wine_vkCreateDescriptorUpdateTemplate},
|
2018-03-15 07:39:40 +01:00
|
|
|
{"vkCreateDescriptorUpdateTemplateKHR", &wine_vkCreateDescriptorUpdateTemplateKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCreateEvent", &wine_vkCreateEvent},
|
|
|
|
{"vkCreateFence", &wine_vkCreateFence},
|
|
|
|
{"vkCreateFramebuffer", &wine_vkCreateFramebuffer},
|
|
|
|
{"vkCreateGraphicsPipelines", &wine_vkCreateGraphicsPipelines},
|
|
|
|
{"vkCreateImage", &wine_vkCreateImage},
|
|
|
|
{"vkCreateImageView", &wine_vkCreateImageView},
|
|
|
|
{"vkCreatePipelineCache", &wine_vkCreatePipelineCache},
|
|
|
|
{"vkCreatePipelineLayout", &wine_vkCreatePipelineLayout},
|
|
|
|
{"vkCreateQueryPool", &wine_vkCreateQueryPool},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkCreateRayTracingPipelinesNV", &wine_vkCreateRayTracingPipelinesNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCreateRenderPass", &wine_vkCreateRenderPass},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkCreateRenderPass2KHR", &wine_vkCreateRenderPass2KHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCreateSampler", &wine_vkCreateSampler},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkCreateSamplerYcbcrConversion", &wine_vkCreateSamplerYcbcrConversion},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkCreateSamplerYcbcrConversionKHR", &wine_vkCreateSamplerYcbcrConversionKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkCreateSemaphore", &wine_vkCreateSemaphore},
|
|
|
|
{"vkCreateShaderModule", &wine_vkCreateShaderModule},
|
2018-03-12 15:37:53 +01:00
|
|
|
{"vkCreateSwapchainKHR", &wine_vkCreateSwapchainKHR},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkCreateValidationCacheEXT", &wine_vkCreateValidationCacheEXT},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkDestroyAccelerationStructureNV", &wine_vkDestroyAccelerationStructureNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkDestroyBuffer", &wine_vkDestroyBuffer},
|
|
|
|
{"vkDestroyBufferView", &wine_vkDestroyBufferView},
|
|
|
|
{"vkDestroyCommandPool", &wine_vkDestroyCommandPool},
|
|
|
|
{"vkDestroyDescriptorPool", &wine_vkDestroyDescriptorPool},
|
|
|
|
{"vkDestroyDescriptorSetLayout", &wine_vkDestroyDescriptorSetLayout},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkDestroyDescriptorUpdateTemplate", &wine_vkDestroyDescriptorUpdateTemplate},
|
2018-03-15 07:39:40 +01:00
|
|
|
{"vkDestroyDescriptorUpdateTemplateKHR", &wine_vkDestroyDescriptorUpdateTemplateKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkDestroyDevice", &wine_vkDestroyDevice},
|
|
|
|
{"vkDestroyEvent", &wine_vkDestroyEvent},
|
|
|
|
{"vkDestroyFence", &wine_vkDestroyFence},
|
|
|
|
{"vkDestroyFramebuffer", &wine_vkDestroyFramebuffer},
|
|
|
|
{"vkDestroyImage", &wine_vkDestroyImage},
|
|
|
|
{"vkDestroyImageView", &wine_vkDestroyImageView},
|
|
|
|
{"vkDestroyPipeline", &wine_vkDestroyPipeline},
|
|
|
|
{"vkDestroyPipelineCache", &wine_vkDestroyPipelineCache},
|
|
|
|
{"vkDestroyPipelineLayout", &wine_vkDestroyPipelineLayout},
|
|
|
|
{"vkDestroyQueryPool", &wine_vkDestroyQueryPool},
|
|
|
|
{"vkDestroyRenderPass", &wine_vkDestroyRenderPass},
|
|
|
|
{"vkDestroySampler", &wine_vkDestroySampler},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkDestroySamplerYcbcrConversion", &wine_vkDestroySamplerYcbcrConversion},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkDestroySamplerYcbcrConversionKHR", &wine_vkDestroySamplerYcbcrConversionKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkDestroySemaphore", &wine_vkDestroySemaphore},
|
|
|
|
{"vkDestroyShaderModule", &wine_vkDestroyShaderModule},
|
2018-03-12 15:37:53 +01:00
|
|
|
{"vkDestroySwapchainKHR", &wine_vkDestroySwapchainKHR},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkDestroyValidationCacheEXT", &wine_vkDestroyValidationCacheEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkDeviceWaitIdle", &wine_vkDeviceWaitIdle},
|
|
|
|
{"vkEndCommandBuffer", &wine_vkEndCommandBuffer},
|
|
|
|
{"vkFlushMappedMemoryRanges", &wine_vkFlushMappedMemoryRanges},
|
|
|
|
{"vkFreeCommandBuffers", &wine_vkFreeCommandBuffers},
|
|
|
|
{"vkFreeDescriptorSets", &wine_vkFreeDescriptorSets},
|
|
|
|
{"vkFreeMemory", &wine_vkFreeMemory},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkGetAccelerationStructureHandleNV", &wine_vkGetAccelerationStructureHandleNV},
|
|
|
|
{"vkGetAccelerationStructureMemoryRequirementsNV", &wine_vkGetAccelerationStructureMemoryRequirementsNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkGetBufferMemoryRequirements", &wine_vkGetBufferMemoryRequirements},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetBufferMemoryRequirements2", &wine_vkGetBufferMemoryRequirements2},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkGetBufferMemoryRequirements2KHR", &wine_vkGetBufferMemoryRequirements2KHR},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetDescriptorSetLayoutSupport", &wine_vkGetDescriptorSetLayoutSupport},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkGetDescriptorSetLayoutSupportKHR", &wine_vkGetDescriptorSetLayoutSupportKHR},
|
2018-07-13 10:55:36 +02:00
|
|
|
{"vkGetDeviceGroupPeerMemoryFeatures", &wine_vkGetDeviceGroupPeerMemoryFeatures},
|
|
|
|
{"vkGetDeviceGroupPeerMemoryFeaturesKHR", &wine_vkGetDeviceGroupPeerMemoryFeaturesKHR},
|
|
|
|
{"vkGetDeviceGroupPresentCapabilitiesKHR", &wine_vkGetDeviceGroupPresentCapabilitiesKHR},
|
2018-07-13 10:55:35 +02:00
|
|
|
{"vkGetDeviceGroupSurfacePresentModesKHR", &wine_vkGetDeviceGroupSurfacePresentModesKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkGetDeviceMemoryCommitment", &wine_vkGetDeviceMemoryCommitment},
|
|
|
|
{"vkGetDeviceProcAddr", &wine_vkGetDeviceProcAddr},
|
|
|
|
{"vkGetDeviceQueue", &wine_vkGetDeviceQueue},
|
2018-07-16 15:18:19 +02:00
|
|
|
{"vkGetDeviceQueue2", &wine_vkGetDeviceQueue2},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkGetEventStatus", &wine_vkGetEventStatus},
|
|
|
|
{"vkGetFenceStatus", &wine_vkGetFenceStatus},
|
|
|
|
{"vkGetImageMemoryRequirements", &wine_vkGetImageMemoryRequirements},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetImageMemoryRequirements2", &wine_vkGetImageMemoryRequirements2},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkGetImageMemoryRequirements2KHR", &wine_vkGetImageMemoryRequirements2KHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkGetImageSparseMemoryRequirements", &wine_vkGetImageSparseMemoryRequirements},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetImageSparseMemoryRequirements2", &wine_vkGetImageSparseMemoryRequirements2},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkGetImageSparseMemoryRequirements2KHR", &wine_vkGetImageSparseMemoryRequirements2KHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkGetImageSubresourceLayout", &wine_vkGetImageSubresourceLayout},
|
|
|
|
{"vkGetPipelineCacheData", &wine_vkGetPipelineCacheData},
|
|
|
|
{"vkGetQueryPoolResults", &wine_vkGetQueryPoolResults},
|
2018-10-05 16:55:20 +02:00
|
|
|
{"vkGetQueueCheckpointDataNV", &wine_vkGetQueueCheckpointDataNV},
|
2018-11-26 12:13:45 +01:00
|
|
|
{"vkGetRayTracingShaderGroupHandlesNV", &wine_vkGetRayTracingShaderGroupHandlesNV},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkGetRenderAreaGranularity", &wine_vkGetRenderAreaGranularity},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkGetShaderInfoAMD", &wine_vkGetShaderInfoAMD},
|
2018-03-12 15:37:53 +01:00
|
|
|
{"vkGetSwapchainImagesKHR", &wine_vkGetSwapchainImagesKHR},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkGetValidationCacheDataEXT", &wine_vkGetValidationCacheDataEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkInvalidateMappedMemoryRanges", &wine_vkInvalidateMappedMemoryRanges},
|
|
|
|
{"vkMapMemory", &wine_vkMapMemory},
|
|
|
|
{"vkMergePipelineCaches", &wine_vkMergePipelineCaches},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkMergeValidationCachesEXT", &wine_vkMergeValidationCachesEXT},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkQueueBindSparse", &wine_vkQueueBindSparse},
|
2018-03-12 15:37:53 +01:00
|
|
|
{"vkQueuePresentKHR", &wine_vkQueuePresentKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkQueueSubmit", &wine_vkQueueSubmit},
|
|
|
|
{"vkQueueWaitIdle", &wine_vkQueueWaitIdle},
|
|
|
|
{"vkResetCommandBuffer", &wine_vkResetCommandBuffer},
|
|
|
|
{"vkResetCommandPool", &wine_vkResetCommandPool},
|
|
|
|
{"vkResetDescriptorPool", &wine_vkResetDescriptorPool},
|
|
|
|
{"vkResetEvent", &wine_vkResetEvent},
|
|
|
|
{"vkResetFences", &wine_vkResetFences},
|
|
|
|
{"vkSetEvent", &wine_vkSetEvent},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkTrimCommandPool", &wine_vkTrimCommandPool},
|
2018-03-15 07:39:40 +01:00
|
|
|
{"vkTrimCommandPoolKHR", &wine_vkTrimCommandPoolKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkUnmapMemory", &wine_vkUnmapMemory},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkUpdateDescriptorSetWithTemplate", &wine_vkUpdateDescriptorSetWithTemplate},
|
2018-03-15 07:39:40 +01:00
|
|
|
{"vkUpdateDescriptorSetWithTemplateKHR", &wine_vkUpdateDescriptorSetWithTemplateKHR},
|
2018-03-09 17:48:47 +01:00
|
|
|
{"vkUpdateDescriptorSets", &wine_vkUpdateDescriptorSets},
|
|
|
|
{"vkWaitForFences", &wine_vkWaitForFences},
|
|
|
|
};
|
|
|
|
|
2018-03-01 16:37:04 +01:00
|
|
|
static const struct vulkan_func vk_instance_dispatch_table[] =
|
|
|
|
{
|
|
|
|
{"vkCreateDevice", &wine_vkCreateDevice},
|
2018-03-12 15:37:53 +01:00
|
|
|
{"vkCreateWin32SurfaceKHR", &wine_vkCreateWin32SurfaceKHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
{"vkDestroyInstance", &wine_vkDestroyInstance},
|
2018-03-12 15:37:53 +01:00
|
|
|
{"vkDestroySurfaceKHR", &wine_vkDestroySurfaceKHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
{"vkEnumerateDeviceExtensionProperties", &wine_vkEnumerateDeviceExtensionProperties},
|
|
|
|
{"vkEnumerateDeviceLayerProperties", &wine_vkEnumerateDeviceLayerProperties},
|
2018-07-12 11:39:43 +02:00
|
|
|
{"vkEnumeratePhysicalDeviceGroups", &wine_vkEnumeratePhysicalDeviceGroups},
|
|
|
|
{"vkEnumeratePhysicalDeviceGroupsKHR", &wine_vkEnumeratePhysicalDeviceGroupsKHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
{"vkEnumeratePhysicalDevices", &wine_vkEnumeratePhysicalDevices},
|
|
|
|
{"vkGetPhysicalDeviceFeatures", &wine_vkGetPhysicalDeviceFeatures},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetPhysicalDeviceFeatures2", &wine_vkGetPhysicalDeviceFeatures2},
|
2018-03-15 07:39:38 +01:00
|
|
|
{"vkGetPhysicalDeviceFeatures2KHR", &wine_vkGetPhysicalDeviceFeatures2KHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
{"vkGetPhysicalDeviceFormatProperties", &wine_vkGetPhysicalDeviceFormatProperties},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetPhysicalDeviceFormatProperties2", &wine_vkGetPhysicalDeviceFormatProperties2},
|
2018-03-15 07:39:38 +01:00
|
|
|
{"vkGetPhysicalDeviceFormatProperties2KHR", &wine_vkGetPhysicalDeviceFormatProperties2KHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
{"vkGetPhysicalDeviceImageFormatProperties", &wine_vkGetPhysicalDeviceImageFormatProperties},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetPhysicalDeviceImageFormatProperties2", &wine_vkGetPhysicalDeviceImageFormatProperties2},
|
2018-03-15 07:39:38 +01:00
|
|
|
{"vkGetPhysicalDeviceImageFormatProperties2KHR", &wine_vkGetPhysicalDeviceImageFormatProperties2KHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
{"vkGetPhysicalDeviceMemoryProperties", &wine_vkGetPhysicalDeviceMemoryProperties},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetPhysicalDeviceMemoryProperties2", &wine_vkGetPhysicalDeviceMemoryProperties2},
|
2018-03-15 07:39:38 +01:00
|
|
|
{"vkGetPhysicalDeviceMemoryProperties2KHR", &wine_vkGetPhysicalDeviceMemoryProperties2KHR},
|
2018-06-06 11:11:53 +02:00
|
|
|
{"vkGetPhysicalDeviceMultisamplePropertiesEXT", &wine_vkGetPhysicalDeviceMultisamplePropertiesEXT},
|
2018-07-13 10:55:35 +02:00
|
|
|
{"vkGetPhysicalDevicePresentRectanglesKHR", &wine_vkGetPhysicalDevicePresentRectanglesKHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
{"vkGetPhysicalDeviceProperties", &wine_vkGetPhysicalDeviceProperties},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetPhysicalDeviceProperties2", &wine_vkGetPhysicalDeviceProperties2},
|
2018-03-15 07:39:38 +01:00
|
|
|
{"vkGetPhysicalDeviceProperties2KHR", &wine_vkGetPhysicalDeviceProperties2KHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
{"vkGetPhysicalDeviceQueueFamilyProperties", &wine_vkGetPhysicalDeviceQueueFamilyProperties},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetPhysicalDeviceQueueFamilyProperties2", &wine_vkGetPhysicalDeviceQueueFamilyProperties2},
|
2018-03-15 07:39:38 +01:00
|
|
|
{"vkGetPhysicalDeviceQueueFamilyProperties2KHR", &wine_vkGetPhysicalDeviceQueueFamilyProperties2KHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
{"vkGetPhysicalDeviceSparseImageFormatProperties", &wine_vkGetPhysicalDeviceSparseImageFormatProperties},
|
2018-07-12 11:39:39 +02:00
|
|
|
{"vkGetPhysicalDeviceSparseImageFormatProperties2", &wine_vkGetPhysicalDeviceSparseImageFormatProperties2},
|
2018-03-15 07:39:38 +01:00
|
|
|
{"vkGetPhysicalDeviceSparseImageFormatProperties2KHR", &wine_vkGetPhysicalDeviceSparseImageFormatProperties2KHR},
|
2018-03-12 15:37:53 +01:00
|
|
|
{"vkGetPhysicalDeviceSurfaceCapabilitiesKHR", &wine_vkGetPhysicalDeviceSurfaceCapabilitiesKHR},
|
|
|
|
{"vkGetPhysicalDeviceSurfaceFormatsKHR", &wine_vkGetPhysicalDeviceSurfaceFormatsKHR},
|
|
|
|
{"vkGetPhysicalDeviceSurfacePresentModesKHR", &wine_vkGetPhysicalDeviceSurfacePresentModesKHR},
|
|
|
|
{"vkGetPhysicalDeviceSurfaceSupportKHR", &wine_vkGetPhysicalDeviceSurfaceSupportKHR},
|
|
|
|
{"vkGetPhysicalDeviceWin32PresentationSupportKHR", &wine_vkGetPhysicalDeviceWin32PresentationSupportKHR},
|
2018-03-01 16:37:04 +01:00
|
|
|
};
|
|
|
|
|
2018-03-09 17:48:47 +01:00
|
|
|
void *wine_vk_get_device_proc_addr(const char *name)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
for (i = 0; i < ARRAY_SIZE(vk_device_dispatch_table); i++)
|
|
|
|
{
|
|
|
|
if (strcmp(vk_device_dispatch_table[i].name, name) == 0)
|
|
|
|
{
|
2018-03-23 14:46:17 +01:00
|
|
|
TRACE("Found name=%s in device table\n", debugstr_a(name));
|
2018-03-09 17:48:47 +01:00
|
|
|
return vk_device_dispatch_table[i].func;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2018-03-01 16:37:04 +01:00
|
|
|
void *wine_vk_get_instance_proc_addr(const char *name)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
for (i = 0; i < ARRAY_SIZE(vk_instance_dispatch_table); i++)
|
|
|
|
{
|
|
|
|
if (strcmp(vk_instance_dispatch_table[i].name, name) == 0)
|
|
|
|
{
|
2018-03-23 14:46:17 +01:00
|
|
|
TRACE("Found name=%s in instance table\n", debugstr_a(name));
|
2018-03-01 16:37:04 +01:00
|
|
|
return vk_instance_dispatch_table[i].func;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
2018-03-14 13:11:50 +01:00
|
|
|
|
|
|
|
static const char * const vk_device_extensions[] =
|
|
|
|
{
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_AMD_buffer_marker",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_AMD_draw_indirect_count",
|
|
|
|
"VK_AMD_gcn_shader",
|
|
|
|
"VK_AMD_gpu_shader_half_float",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_AMD_gpu_shader_int16",
|
|
|
|
"VK_AMD_mixed_attachment_samples",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_AMD_negative_viewport_height",
|
|
|
|
"VK_AMD_rasterization_order",
|
|
|
|
"VK_AMD_shader_ballot",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_AMD_shader_core_properties",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_AMD_shader_explicit_vertex_parameter",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_AMD_shader_fragment_mask",
|
|
|
|
"VK_AMD_shader_image_load_store_lod",
|
|
|
|
"VK_AMD_shader_info",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_AMD_shader_trinary_minmax",
|
|
|
|
"VK_AMD_texture_gather_bias_lod",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_EXT_astc_decode_mode",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_EXT_blend_operation_advanced",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_EXT_conditional_rendering",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_EXT_conservative_rasterization",
|
|
|
|
"VK_EXT_depth_range_unrestricted",
|
|
|
|
"VK_EXT_descriptor_indexing",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_EXT_discard_rectangles",
|
2018-11-26 12:13:45 +01:00
|
|
|
"VK_EXT_fragment_density_map",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_EXT_global_priority",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_EXT_inline_uniform_block",
|
2018-10-15 11:40:19 +02:00
|
|
|
"VK_EXT_pci_bus_info",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_EXT_post_depth_coverage",
|
|
|
|
"VK_EXT_sample_locations",
|
|
|
|
"VK_EXT_sampler_filter_minmax",
|
2018-11-26 12:13:45 +01:00
|
|
|
"VK_EXT_scalar_block_layout",
|
|
|
|
"VK_EXT_separate_stencil_usage",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_EXT_shader_stencil_export",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_EXT_shader_subgroup_ballot",
|
|
|
|
"VK_EXT_shader_subgroup_vote",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_EXT_shader_viewport_index_layer",
|
2018-10-15 11:40:19 +02:00
|
|
|
"VK_EXT_transform_feedback",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_EXT_validation_cache",
|
|
|
|
"VK_EXT_vertex_attribute_divisor",
|
2018-10-15 11:40:19 +02:00
|
|
|
"VK_GOOGLE_decorate_string",
|
|
|
|
"VK_GOOGLE_hlsl_functionality1",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_IMG_filter_cubic",
|
|
|
|
"VK_IMG_format_pvrtc",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_16bit_storage",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_KHR_8bit_storage",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_bind_memory2",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_KHR_create_renderpass2",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_dedicated_allocation",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_KHR_descriptor_update_template",
|
2018-07-13 10:55:36 +02:00
|
|
|
"VK_KHR_device_group",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_draw_indirect_count",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_KHR_driver_properties",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_get_memory_requirements2",
|
|
|
|
"VK_KHR_image_format_list",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_KHR_incremental_present",
|
|
|
|
"VK_KHR_maintenance1",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_maintenance2",
|
|
|
|
"VK_KHR_maintenance3",
|
|
|
|
"VK_KHR_multiview",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_KHR_push_descriptor",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_relaxed_block_layout",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_KHR_sampler_mirror_clamp_to_edge",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_sampler_ycbcr_conversion",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_KHR_shader_atomic_int64",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_KHR_shader_draw_parameters",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_storage_buffer_storage_class",
|
2018-03-14 13:11:50 +01:00
|
|
|
"VK_KHR_swapchain",
|
2018-11-26 12:13:45 +01:00
|
|
|
"VK_KHR_swapchain_mutable_format",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_KHR_variable_pointers",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_KHR_vulkan_memory_model",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_NV_clip_space_w_scaling",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_NV_compute_shader_derivatives",
|
|
|
|
"VK_NV_corner_sampled_image",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_NV_dedicated_allocation",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_NV_device_diagnostic_checkpoints",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_NV_external_memory",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_NV_fill_rectangle",
|
|
|
|
"VK_NV_fragment_coverage_to_color",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_NV_fragment_shader_barycentric",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_NV_framebuffer_mixed_samples",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_NV_geometry_shader_passthrough",
|
|
|
|
"VK_NV_glsl_shader",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_NV_mesh_shader",
|
2018-11-26 12:13:45 +01:00
|
|
|
"VK_NV_ray_tracing",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_NV_representative_fragment_test",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_NV_sample_mask_override_coverage",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_NV_scissor_exclusive",
|
|
|
|
"VK_NV_shader_image_footprint",
|
2018-06-06 11:11:53 +02:00
|
|
|
"VK_NV_shader_subgroup_partitioned",
|
2018-10-05 16:55:20 +02:00
|
|
|
"VK_NV_shading_rate_image",
|
2018-03-15 07:39:40 +01:00
|
|
|
"VK_NV_viewport_array2",
|
|
|
|
"VK_NV_viewport_swizzle",
|
2018-03-14 13:11:50 +01:00
|
|
|
};
|
|
|
|
|
2018-03-23 14:46:17 +01:00
|
|
|
static const char * const vk_instance_extensions[] =
|
2018-03-15 07:39:37 +01:00
|
|
|
{
|
2018-07-12 11:39:43 +02:00
|
|
|
"VK_KHR_device_group_creation",
|
2018-03-15 07:39:38 +01:00
|
|
|
"VK_KHR_get_physical_device_properties2",
|
2018-03-15 07:39:37 +01:00
|
|
|
"VK_KHR_surface",
|
|
|
|
"VK_KHR_win32_surface",
|
|
|
|
};
|
|
|
|
|
2018-03-14 13:11:50 +01:00
|
|
|
BOOL wine_vk_device_extension_supported(const char *name)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
for (i = 0; i < ARRAY_SIZE(vk_device_extensions); i++)
|
|
|
|
{
|
|
|
|
if (strcmp(vk_device_extensions[i], name) == 0)
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
return FALSE;
|
|
|
|
}
|
2018-03-15 07:39:37 +01:00
|
|
|
|
|
|
|
BOOL wine_vk_instance_extension_supported(const char *name)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
for (i = 0; i < ARRAY_SIZE(vk_instance_extensions); i++)
|
|
|
|
{
|
|
|
|
if (strcmp(vk_instance_extensions[i], name) == 0)
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
return FALSE;
|
|
|
|
}
|