c/{client,main,util}: Improve comments

This commit is contained in:
Rylie Pavlik 2024-05-03 14:21:01 -05:00
parent e6e9396844
commit 97dd6ce590
3 changed files with 3 additions and 3 deletions

View file

@ -917,7 +917,7 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn,
return c;
}
// Create a dummy VkCommandBuffer and submit it to the VkQueue, just for inserting a debug label into
// Create a no-op VkCommandBuffer and submit it to the VkQueue, just for inserting a debug label into
// RenderDoc for triggering the capture.
ret = vk_cmd_pool_create_begin_insert_label_and_end_cmd_buffer_locked(
vk, &c->pool, "vr-marker,frame_end,type,application", &c->dcb);

View file

@ -862,7 +862,7 @@ dispatch_graphics(struct comp_renderer *r,
// Resources for the distortion render target.
struct render_gfx_target_resources *rtr = &r->rtr_array[r->acquired_buffer];
// Sanity check.
// Consistency check.
assert(!fast_path || c->base.slot.layer_count >= 1);
// Viewport information.

View file

@ -811,7 +811,7 @@ comp_render_gfx_dispatch(struct render_gfx *rr,
// Only used if fast_path is true.
const struct comp_layer *layer = &layers[0];
// Sanity check.
// Consistency check.
assert(!fast_path || layer_count >= 1);
if (fast_path && layer->data.type == XRT_LAYER_PROJECTION) {