cleaning...
This commit is contained in:
parent
631a09b637
commit
1f71402915
2 changed files with 1 additions and 7 deletions
|
@ -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<vk::Image>,
|
||||
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::<u8>()
|
||||
|
@ -606,7 +601,6 @@ impl SwapchainData {
|
|||
shader_input_image_extent,
|
||||
shader_input_texture,
|
||||
present_images,
|
||||
shader_output_image_extent,
|
||||
},
|
||||
viewport_state_info,
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue