diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-03-01 13:48:17 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-03-01 14:43:15 +0000 |
commit | 78783f5a641e4429a61cf13251777502427db510 (patch) | |
tree | 3bacf769c0b5e45b5682e371bad3d965221fcf6d /vulkan.c | |
parent | 364eea8654a69dd0e79cdfa86c10992e6e275ccd (diff) | |
download | vulkan-78783f5a641e4429a61cf13251777502427db510.tar.gz vulkan-78783f5a641e4429a61cf13251777502427db510.tar.xz vulkan-78783f5a641e4429a61cf13251777502427db510.zip |
shaders: fix shader embedding
The embedded shader data should be using char * instead of void *.
Additionally some macros are provided for better readability.
Diffstat (limited to 'vulkan.c')
-rw-r--r-- | vulkan.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -520,8 +520,8 @@ static void createpipeline(struct ppln *ppln, VkDevice dev, const VkExtent2D *ex if (res != VK_SUCCESS) eprintf("Could not create pipeline layout"); - vsmod = createsmod(dev, _binary_vertex_spv_start, _binary_vertex_spv_size); - fsmod = createsmod(dev, _binary_fragment_spv_start, _binary_fragment_spv_size); + vsmod = createsmod(dev, vertex_spv_data, vertex_spv_size); + fsmod = createsmod(dev, fragment_spv_data, fragment_spv_size); gpcinf = (VkGraphicsPipelineCreateInfo){ .sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO, |