summaryrefslogtreecommitdiffstatsci
path: root/src/vkvg_device_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vkvg_device_internal.h')
-rw-r--r--src/vkvg_device_internal.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/vkvg_device_internal.h b/src/vkvg_device_internal.h
index 049ea7a..0e6460b 100644
--- a/src/vkvg_device_internal.h
+++ b/src/vkvg_device_internal.h
@@ -5,6 +5,18 @@
#include "vkvg.h"
#include "vkvg_fonts.h"
+typedef struct _grad_compute_t {
+ int width;
+ int height;
+ int work_size;
+
+ VkPipeline pipeline;
+ VkPipelineLayout pipelineLayout;
+ VkDescriptorSetLayout descriptorSetLayout;
+ VkhImage output;
+ //ubo_t* ubo;
+}grad_compute_t;
+
typedef struct _vkvg_device_t{
VkDevice vkDev;
VkPhysicalDeviceMemoryProperties phyMemProps;
@@ -12,6 +24,7 @@ typedef struct _vkvg_device_t{
VkPhysicalDevice phy;
VkhQueue gQueue;
+ VkhQueue cQueue;
VkCommandPool cmdPool;
VkCommandBuffer cmd;
@@ -29,6 +42,7 @@ typedef struct _vkvg_device_t{
VkDescriptorSetLayout dslFont;
VkDescriptorSetLayout dslSrc;
+ grad_compute_t gradientPipeline;
int hdpi,
vdpi;