# HG changeset patch # User John Tsiombikas # Date 1726103954 -10800 # Node ID d5a3f6912f4da3d176b2cd4f59f6da54cf23f05b # Parent 8de4fe9268823c6f3ac894531a91bee555352217 how the hell did this work? diff -r 8de4fe926882 -r d5a3f6912f4d src/main.c --- a/src/main.c Thu Jun 28 13:57:28 2018 +0300 +++ b/src/main.c Thu Sep 12 04:19:14 2024 +0300 @@ -422,6 +422,7 @@ ivinf.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; ivinf.subresourceRange.levelCount = 1; ivinf.subresourceRange.layerCount = 1; + ivinf.viewType = VK_IMAGE_VIEW_TYPE_2D; if(vkCreateImageView(vkdev, &ivinf, 0, vksc_view + i) != 0) { fprintf(stderr, "failed to create image view for image %d\n", i); @@ -498,7 +499,7 @@ VkPipelineLayoutCreateInfo lay; VkGraphicsPipelineCreateInfo pinf; - if(!(sdr[0] = load_shader("vertex.glsl")) || !(sdr[1] = load_shader("pixel.glsl"))) { + if(!(sdr[0] = load_shader("vertex.spv")) || !(sdr[1] = load_shader("pixel.spv"))) { return -1; } memset(ssinf, 0, sizeof ssinf);