diff --git a/gb-emu/src/renderer/vulkan/types.rs b/gb-emu/src/renderer/vulkan/types.rs index 236c3ba..6b98abd 100644 --- a/gb-emu/src/renderer/vulkan/types.rs +++ b/gb-emu/src/renderer/vulkan/types.rs @@ -257,7 +257,6 @@ pub(super) struct SwapchainData { pub(super) shader_input_image_extent: vk::Extent2D, pub(super) shader_input_texture: vk::Image, pub(super) present_images: Vec, - pub(super) shader_output_image_extent: vk::Extent2D, } impl SwapchainData { @@ -374,10 +373,6 @@ impl SwapchainData { width: resolutions.scaled_width, height: resolutions.scaled_height, }; - let shader_output_image_extent = vk::Extent2D { - width: resolutions.real_width, - height: resolutions.real_height, - }; let shader_input_image_buffer_info = vk::BufferCreateInfo { size: (std::mem::size_of::() @@ -606,7 +601,6 @@ impl SwapchainData { shader_input_image_extent, shader_input_texture, present_images, - shader_output_image_extent, }, viewport_state_info, ) diff --git a/gb-emu/src/renderer/vulkan/vulkan.rs b/gb-emu/src/renderer/vulkan/vulkan.rs index 07d8081..4d6062a 100644 --- a/gb-emu/src/renderer/vulkan/vulkan.rs +++ b/gb-emu/src/renderer/vulkan/vulkan.rs @@ -546,7 +546,7 @@ impl VulkanWindowInner { mvp: None, output: librashader::runtime::vk::VulkanImage { image: self.swapchain.present_images[present_index as usize], - size: self.swapchain.shader_output_image_extent.into(), + size: self.swapchain.surface_resolution.into(), format: self.swapchain.format.format, }, },