From adc4def4e2d1a9e3c5874ea09d6dfad28fb268c6 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Sat, 8 Mar 2025 12:48:06 +0100 Subject: [PATCH] Back to whole area --- skybox/src/lib.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/skybox/src/lib.rs b/skybox/src/lib.rs index f72f43a..4d66291 100644 --- a/skybox/src/lib.rs +++ b/skybox/src/lib.rs @@ -249,21 +249,7 @@ impl SkyBox { .default_multisample(sample_count) .default_color_blend(vec![VkPipelineColorBlendAttachmentState::default()]) .default_rasterization(VK_CULL_MODE_NONE, VK_FRONT_FACE_CLOCKWISE) - .add_viewport(VkViewport { - x: 0.0, - y: 0.0, - width: render_target.width() as f32, - height: render_target.height() as f32, - minDepth: -1.0, - maxDepth: 1.0, - }) - .add_scissor(VkRect2D { - offset: VkOffset2D { x: 0, y: 0 }, - extent: VkExtent2D { - width: render_target.width(), - height: render_target.height(), - }, - }) + .whole_area(render_target.width(), render_target.height()) .build( context.device().clone(), pipeline_layout,