Skip to content

Commit

Permalink
let default initialize component
Browse files Browse the repository at this point in the history
  • Loading branch information
alihuawei committed Dec 9, 2024
1 parent b27c793 commit 4a28135
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions samples/api/hello_triangle_1_3/hello_triangle_1_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,6 @@ void HelloTriangleV13::init_swapchain()
.image = swapchain_images[i],
.viewType = VK_IMAGE_VIEW_TYPE_2D,
.format = context.swapchain_dimensions.format,
.components = {
.r = VK_COMPONENT_SWIZZLE_R,
.g = VK_COMPONENT_SWIZZLE_G,
.b = VK_COMPONENT_SWIZZLE_B,
.a = VK_COMPONENT_SWIZZLE_A},
.subresourceRange = {.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, .baseMipLevel = 0, .levelCount = 1, .baseArrayLayer = 0, .layerCount = 1}};

VkImageView image_view;
Expand Down

0 comments on commit 4a28135

Please sign in to comment.