summaryrefslogtreecommitdiffstats
path: root/vulkan.c
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-03-01 13:48:17 +0000
committerTomasz Kramkowski <tk@the-tk.com>2018-03-01 14:43:15 +0000
commit78783f5a641e4429a61cf13251777502427db510 (patch)
tree3bacf769c0b5e45b5682e371bad3d965221fcf6d /vulkan.c
parent364eea8654a69dd0e79cdfa86c10992e6e275ccd (diff)
downloadvulkan-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vulkan.c b/vulkan.c
index 420be16..0b9bb81 100644
--- a/vulkan.c
+++ b/vulkan.c
@@ -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,