[vulkan] Change curFrame from size_t to uint32_t

I very much doubt that even 4294967295 frames will be needed, let alone
more. Saves me having to use %zd or %zu all over the place.
This commit is contained in:
Bill Currie 2022-11-25 16:02:39 +09:00
parent 87f99f9081
commit 92b36582ca
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ typedef struct vulkan_ctx_s {
VkCommandPool cmdpool; VkCommandPool cmdpool;
struct qfv_stagebuf_s *staging; struct qfv_stagebuf_s *staging;
size_t curFrame; uint32_t curFrame;
vulkan_frameset_t frames; vulkan_frameset_t frames;
qfv_renderpassset_t renderPasses; qfv_renderpassset_t renderPasses;
struct qfv_renderpass_s *output_renderpass; struct qfv_renderpass_s *output_renderpass;

View file

@ -245,7 +245,7 @@ lighting_draw_maps (qfv_renderframe_t *rFrame)
QFV_AllocateCommandBuffers (device, lctx->cmdpool, 0, bufferset); QFV_AllocateCommandBuffers (device, lctx->cmdpool, 0, bufferset);
VkCommandBuffer cmd = bufferset->a[0]; VkCommandBuffer cmd = bufferset->a[0];
QFV_duSetObjectName (device, VK_OBJECT_TYPE_COMMAND_BUFFER, QFV_duSetObjectName (device, VK_OBJECT_TYPE_COMMAND_BUFFER,
cmd, va (ctx->va_ctx, "lighting:%zd", ctx->curFrame)); cmd, va (ctx->va_ctx, "lighting:%d", ctx->curFrame));
VkCommandBufferBeginInfo beginInfo = { VkCommandBufferBeginInfo beginInfo = {
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO,