c/main: Remove layer renderer framebuffer sampler

This commit is contained in:
Jakob Bornecrantz 2023-05-18 19:29:15 +01:00
parent 82453bab57
commit 1644812dc5
2 changed files with 0 additions and 4 deletions

View file

@ -418,8 +418,6 @@ _init_frame_buffer(struct comp_layer_renderer *self, VkFormat format, VkRenderPa
&self->framebuffers[eye].image);
vk_check_error("vk_create_image_simple", res, false);
vk_create_sampler(vk, VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER, &self->framebuffers[eye].sampler);
VkImageSubresourceRange subresource_range = {
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
.baseMipLevel = 0,
@ -672,7 +670,6 @@ _destroy_framebuffer(struct comp_layer_renderer *self, uint32_t i)
vk->vkDestroyImage(vk->device, self->framebuffers[i].image, NULL);
vk->vkFreeMemory(vk->device, self->framebuffers[i].memory, NULL);
vk->vkDestroyFramebuffer(vk->device, self->framebuffers[i].handle, NULL);
vk->vkDestroySampler(vk->device, self->framebuffers[i].sampler, NULL);
}
void

View file

@ -25,7 +25,6 @@ struct comp_layer_renderer
VkImage image;
VkDeviceMemory memory;
VkImageView view;
VkSampler sampler;
VkFramebuffer handle;
} framebuffers[2];