misses a couple vulkan warnings

This commit is contained in:
Gregory Wells
2025-08-03 15:45:45 -04:00
parent a49a0a5a3e
commit 4e55fc6724
3 changed files with 10 additions and 8 deletions

View File

@@ -2,12 +2,13 @@
#include "textures/vulkan_texture.h"
#include "renderpass/vulkan_render_pass_descriptor.h"
#include "output_device/vulkan_output_devices.h"
#include "vulkan_result_converter.h"
gnReturnCode createFramebuffer(gnFramebuffer framebuffer, gnDevice device, gnFramebufferInfo info) {
framebuffer->framebuffer = malloc(sizeof(struct gnPlatformFramebuffer_t));
VkImageView* attachments = malloc(sizeof(VkImageView) * info.attachmentCount);
for (int i = 0; i < info.attachmentCount; i++)
for (uint32_t i = 0; i < info.attachmentCount; i++)
attachments[i] = info.attachments[i]->texture->image.imageView;
VkFramebufferCreateInfo framebufferInfo = {
@@ -22,7 +23,7 @@ gnReturnCode createFramebuffer(gnFramebuffer framebuffer, gnDevice device, gnFra
VkResult res = vkCreateFramebuffer(device->outputDevice->device, &framebufferInfo, NULL, &framebuffer->framebuffer->framebuffer);
free(attachments);
return GN_SUCCESS;
return VkResultToGnReturnCode(res);
}
void destroyFramebuffer(gnFramebuffer framebuffer) {