[vulkan] Fix a typo and gcc purity warning

This commit is contained in:
Bill Currie 2021-12-13 10:39:01 +09:00
parent fde47d6983
commit d857bdea77
5 changed files with 6 additions and 5 deletions

View file

@ -82,6 +82,7 @@ void Vulkan_Matrix_Init (struct vulkan_ctx_s *ctx);
void Vulkan_Matrix_Shutdown (struct vulkan_ctx_s *ctx);
// "Draw" :)
void Vulkan_Matrix_Draw (struct qfv_renderframe_s *rFrame);
VkDescriptorSet Vulkan_Matrix_Descrptors (struct vulkan_ctx_s *ctx, int frame);
VkDescriptorSet Vulkan_Matrix_Descriptors (struct vulkan_ctx_s *ctx, int frame)
__attribute__((pure));
#endif//__QF_Vulkan_qf_matrices_h

View file

@ -204,7 +204,7 @@ alias_begin_subpass (QFV_AliasSubpass subpass, VkPipeline pipeline,
dfunc->vkCmdBindPipeline (cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline);
VkDescriptorSet sets[] = {
Vulkan_Matrix_Descrptors (ctx, ctx->curFrame),
Vulkan_Matrix_Descriptors (ctx, ctx->curFrame),
actx->descriptors,
};
dfunc->vkCmdBindDescriptorSets (cmd, VK_PIPELINE_BIND_POINT_GRAPHICS,

View file

@ -891,7 +891,7 @@ bsp_begin_subpass (QFV_BspSubpass subpass, VkPipeline pipeline,
VK_INDEX_TYPE_UINT32);
VkDescriptorSet sets[] = {
Vulkan_Matrix_Descrptors (ctx, ctx->curFrame),
Vulkan_Matrix_Descriptors (ctx, ctx->curFrame),
bctx->descriptors,
};
dfunc->vkCmdBindDescriptorSets (cmd, VK_PIPELINE_BIND_POINT_GRAPHICS,

View file

@ -794,7 +794,7 @@ Vulkan_FlushText (qfv_renderframe_t *rFrame)
dfunc->vkCmdBindIndexBuffer (cmd, dctx->ind_buffer, 0,
VK_INDEX_TYPE_UINT32);
VkDescriptorSet set[2] = {
Vulkan_Matrix_Descrptors (ctx, ctx->curFrame),
Vulkan_Matrix_Descriptors (ctx, ctx->curFrame),
dframe->descriptors,
};
VkPipelineLayout layout = dctx->layout;

View file

@ -274,7 +274,7 @@ Vulkan_Matrix_Shutdown (vulkan_ctx_t *ctx)
}
VkDescriptorSet
Vulkan_Matrix_Descrptors (vulkan_ctx_t *ctx, int frame)
Vulkan_Matrix_Descriptors (vulkan_ctx_t *ctx, int frame)
{
__auto_type mctx = ctx->matrix_context;
return mctx->frames.a[frame].descriptors;