VkSwapchain: Use ComponentSwizzle::IDENTITY instead of each settings
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
This commit is contained in:
parent
002d6fa9a4
commit
81e4212d8e
1 changed files with 4 additions and 4 deletions
|
@ -215,10 +215,10 @@ impl VkSwapchain {
|
||||||
.view_type(vk::ImageViewType::TYPE_2D)
|
.view_type(vk::ImageViewType::TYPE_2D)
|
||||||
.format(self.surface_format.format)
|
.format(self.surface_format.format)
|
||||||
.components(vk::ComponentMapping {
|
.components(vk::ComponentMapping {
|
||||||
r: vk::ComponentSwizzle::R,
|
r: vk::ComponentSwizzle::IDENTITY,
|
||||||
g: vk::ComponentSwizzle::G,
|
g: vk::ComponentSwizzle::IDENTITY,
|
||||||
b: vk::ComponentSwizzle::B,
|
b: vk::ComponentSwizzle::IDENTITY,
|
||||||
a: vk::ComponentSwizzle::A,
|
a: vk::ComponentSwizzle::IDENTITY,
|
||||||
})
|
})
|
||||||
.subresource_range(vk::ImageSubresourceRange {
|
.subresource_range(vk::ImageSubresourceRange {
|
||||||
aspect_mask: vk::ImageAspectFlags::COLOR,
|
aspect_mask: vk::ImageAspectFlags::COLOR,
|
||||||
|
|
Loading…
Reference in a new issue