Removed explicit setting of the ComponentMapping for ImageViews in samples to RGBA, as the default of Identity does the same.
This commit is contained in:
@@ -194,11 +194,8 @@ int main( int /*argc*/, char ** /*argv*/ )
|
||||
vk::BorderColor::eFloatOpaqueWhite );
|
||||
vk::Sampler sampler = device.createSampler( samplerCreateInfo );
|
||||
|
||||
vk::ComponentMapping componentMapping(
|
||||
vk::ComponentSwizzle::eR, vk::ComponentSwizzle::eG, vk::ComponentSwizzle::eB, vk::ComponentSwizzle::eA );
|
||||
vk::ImageSubresourceRange imageSubresourceRange( vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1 );
|
||||
vk::ImageViewCreateInfo imageViewCreateInfo(
|
||||
{}, image, vk::ImageViewType::e2D, format, componentMapping, imageSubresourceRange );
|
||||
vk::ImageViewCreateInfo imageViewCreateInfo(
|
||||
{}, image, vk::ImageViewType::e2D, format, {}, { vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1 } );
|
||||
vk::ImageView imageView = device.createImageView( imageViewCreateInfo );
|
||||
|
||||
/* VULKAN_KEY_END */
|
||||
|
||||
Reference in New Issue
Block a user