]> O.S.I.I.S - jp/vkvg.git/commitdiff
comments
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 13 Jan 2022 08:25:48 +0000 (09:25 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 13 Jan 2022 08:25:48 +0000 (09:25 +0100)
src/vkvg_context_internal.h

index 52fa7675869bb11200b6233d22696768aa67582a..de546d6fd94ec2f84c48159e5560d7abe491fce8 100644 (file)
@@ -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,