mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-05 13:28:16 +00:00
c/{client,main,util}: Improve comments
This commit is contained in:
parent
e6e9396844
commit
97dd6ce590
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue