diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-04-17 16:43:47 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-04-17 16:43:47 +0200 |
| commit | 182b31b310ff9f27fd62257426da377515d7ad9c (patch) | |
| tree | b5295d40d27e85d74c7c2d2cbe940180faa1f834 /src/vkvg_device_internal.h | |
| parent | 1afbf1702e3ed4a15d505b67ddbe5b4ceb9dcc49 (diff) | |
test with a compute queue for gradientgradComputeTest
Diffstat (limited to 'src/vkvg_device_internal.h')
| -rw-r--r-- | src/vkvg_device_internal.h | 14 |
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; |