From 52f6fd466f72294a4c77be33577899f7f6b1e323 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Thu, 13 Jan 2022 09:25:48 +0100 Subject: [PATCH] comments --- src/vkvg_context_internal.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/vkvg_context_internal.h b/src/vkvg_context_internal.h index 52fa767..de546d6 100644 --- a/src/vkvg_context_internal.h +++ b/src/vkvg_context_internal.h @@ -80,6 +80,17 @@ typedef struct { vkvg_matrix_t matInv; }push_constants; +/* context.curClipState may be one of the following, it's set + * with check of the previous saved state: + * - none: no clipping operation since the previous state + * - clear: current has cleared the clip, or previous state is also clear. + * - clip: current have been clipped with a new region since the last save. + * + * the saved context may have following savedState: + * - clear: no clip + * - clip: context is clipped, but not at this save/restore level, no stencil is saved at that level + * - clip_saved: context is clipped and the clip region is saved at that level. + */ typedef enum { vkvg_clip_state_none = 0x00, vkvg_clip_state_clear = 0x01, -- 2.47.3