summaryrefslogtreecommitdiffstatsci
path: root/include
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-10-14 09:36:50 +0200
committerj-p <jp_bruyere@hotmail.com>2021-05-10 08:46:18 +0200
commitb42af4e54b90dc92debadfb8a09d26fc740bc18a (patch)
tree62b177943b8f6e4d59771815461bccdcd6053950 /include
parentc9f7b0155f423afc29339774c0c2ec9546035c8f (diff)
solve macro=type problem for ibo int, debug statistic
Diffstat (limited to 'include')
-rw-r--r--include/vkvg.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/vkvg.h b/include/vkvg.h
index 903e59e..156c148 100644
--- a/include/vkvg.h
+++ b/include/vkvg.h
@@ -274,6 +274,26 @@ typedef struct _vkvg_device_t* VkvgDevice;
*/
typedef struct _vkvg_pattern_t* VkvgPattern;
+#if VKVG_DBG_STATS
+/**
+ * @brief vkvg memory and vulkan statistiques.
+ *
+ * @ingroup device
+ */
+typedef struct {
+ uint32_t sizePoints; /**< maximum point array size */
+ uint32_t sizePathes; /**< maximum path array size */
+ uint32_t sizeVertices; /**< maximum size of host vertice cache */
+ uint32_t sizeIndices; /**< maximum size of host index cache */
+ uint32_t sizeVBO; /**< maximum size of vulkan vertex buffer */
+ uint32_t sizeIBO; /**< maximum size of vulkan index buffer */
+} vkvg_debug_stats_t;
+
+vkvg_debug_stats_t vkvg_device_get_stats (VkvgDevice dev);
+vkvg_debug_stats_t vkvg_device_reset_stats (VkvgDevice dev);
+#endif
+
+
/**
* @defgroup matrix Matrices
* @brief Generic matrix operations