mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[vulkan] Fix some forward declarations and namespace issues
This commit is contained in:
parent
b08639fc82
commit
477057a5ad
3 changed files with 10 additions and 9 deletions
|
@ -49,7 +49,7 @@ int QFV_QueueSubmit (struct qfv_queue_s *queue,
|
|||
qfv_semaphoreset_t *signalSemaphores, VkFence fence);
|
||||
int QFV_QueueWaitIdle (struct qfv_queue_s *queue);
|
||||
|
||||
typedef struct {
|
||||
typedef struct qfv_push_constants_s {
|
||||
VkShaderStageFlags stageFlags;
|
||||
uint32_t offset;
|
||||
uint32_t size;
|
||||
|
|
|
@ -25,10 +25,10 @@
|
|||
do { \
|
||||
qfv_devfuncs_t *dfunc = device->funcs; \
|
||||
if (dfunc->vkCmdBeginDebugUtilsLabelEXT) { \
|
||||
VkDebugUtilsLabelEXT label = { \
|
||||
VkDebugUtilsLabelEXT qfv_du_label = { \
|
||||
VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT, 0, name \
|
||||
}; \
|
||||
dfunc->vkCmdBeginDebugUtilsLabelEXT (cmd, &label); \
|
||||
dfunc->vkCmdBeginDebugUtilsLabelEXT (cmd, &qfv_du_label); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
@ -44,10 +44,10 @@
|
|||
do { \
|
||||
qfv_devfuncs_t *dfunc = device->funcs; \
|
||||
if (dfunc->vkCmdInsertDebugUtilsLabelEXT) { \
|
||||
VkDebugUtilsLabelEXT label = { \
|
||||
VkDebugUtilsLabelEXT qfv_du_label = { \
|
||||
VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT, 0, name \
|
||||
}; \
|
||||
dfunc->vkCmdInsertDebugUtilsLabelEXT (cmd, &label); \
|
||||
dfunc->vkCmdInsertDebugUtilsLabelEXT (cmd, &qfv_du_label); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
@ -74,10 +74,10 @@
|
|||
do { \
|
||||
qfv_devfuncs_t *dfunc = device->funcs; \
|
||||
if (dfunc->vkQueueBeginDebugUtilsLabelEXT) { \
|
||||
VkDebugUtilsLabelEXT label = { \
|
||||
VkDebugUtilsLabelEXT qfv_du_label = { \
|
||||
VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT, 0, name \
|
||||
}; \
|
||||
dfunc->vkQueueBeginDebugUtilsLabelEXT (queue, &label); \
|
||||
dfunc->vkQueueBeginDebugUtilsLabelEXT (queue, &qfv_du_label); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
@ -93,10 +93,10 @@
|
|||
do { \
|
||||
qfv_devfuncs_t *dfunc = device->funcs; \
|
||||
if (dfunc->vkQueueInsertDebugUtilsLabelEXT) { \
|
||||
VkDebugUtilsLabelEXT label = { \
|
||||
VkDebugUtilsLabelEXT qfv_du_label = { \
|
||||
VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT, 0, name \
|
||||
}; \
|
||||
dfunc->vkQueueInsertDebugUtilsLabelEXT (queue, &label); \
|
||||
dfunc->vkQueueInsertDebugUtilsLabelEXT (queue, &qfv_du_label); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <vulkan/vulkan.h>
|
||||
|
||||
#include "QF/darray.h"
|
||||
#include "QF/qtypes.h"
|
||||
#include "QF/simd/types.h"
|
||||
|
||||
typedef struct vulkan_frame_s {
|
||||
|
|
Loading…
Reference in a new issue