From dc2cd2d0dcfdc2e10ccd1f06039390b6293e46ef Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 10 Oct 2019 10:25:46 +1100 Subject: Cleanup: clang-format, spelling --- source/blender/gpu/GPU_batch.h | 6 ++++-- source/blender/gpu/intern/gpu_batch.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/GPU_batch.h b/source/blender/gpu/GPU_batch.h index 7d8c3347eb4..d7218e97bf0 100644 --- a/source/blender/gpu/GPU_batch.h +++ b/source/blender/gpu/GPU_batch.h @@ -193,8 +193,10 @@ GPUBatch *create_BatchInGeneral(GPUPrimType, VertexBufferStuff, ElementListStuff #endif /* future plans */ -/* GPUDrawList is an API to do lots of similar drawcalls very fast using multidrawindirect. - * There is a fallback if the feature is not supported. */ +/** + * #GPUDrawList is an API to do lots of similar draw-calls very fast using multi-draw-indirect. + * There is a fallback if the feature is not supported. + */ typedef struct GPUDrawList GPUDrawList; GPUDrawList *GPU_draw_list_create(int length); diff --git a/source/blender/gpu/intern/gpu_batch.c b/source/blender/gpu/intern/gpu_batch.c index cffe46f4396..fc578b4466c 100644 --- a/source/blender/gpu/intern/gpu_batch.c +++ b/source/blender/gpu/intern/gpu_batch.c @@ -858,7 +858,7 @@ void GPU_draw_list_submit(GPUDrawList *list) size_t bytes_used = cmd_len * sizeof(GPUDrawCommandIndexed); list->cmd_len = 0; /* Avoid reuse. */ - /* Only do multidraw indirect if doing more than 2 drawcall. + /* Only do multi-draw indirect if doing more than 2 drawcall. * This avoids the overhead of buffer mapping if scene is * not very instance friendly. */ if (USE_MULTI_DRAW_INDIRECT && cmd_len > 2) { -- cgit v1.2.3