mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
[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:
parent
87f99f9081
commit
92b36582ca
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ typedef struct vulkan_ctx_s {
|
|||
|
||||
VkCommandPool cmdpool;
|
||||
struct qfv_stagebuf_s *staging;
|
||||
size_t curFrame;
|
||||
uint32_t curFrame;
|
||||
vulkan_frameset_t frames;
|
||||
qfv_renderpassset_t renderPasses;
|
||||
struct qfv_renderpass_s *output_renderpass;
|
||||
|
|
|
@ -245,7 +245,7 @@ lighting_draw_maps (qfv_renderframe_t *rFrame)
|
|||
QFV_AllocateCommandBuffers (device, lctx->cmdpool, 0, bufferset);
|
||||
VkCommandBuffer cmd = bufferset->a[0];
|
||||
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 = {
|
||||
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO,
|
||||
|
|
Loading…
Reference in a new issue