mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 12:18:35 +01:00
Vulkan: Image views: The driver is probably smart enough to recognize a no-swizzle, but let's use the proper method.
This commit is contained in:
1 parent
7f835d3301
commit
cf06b4a947
3 files changed
+13
-16
No files matched your search
@@ -142,10 +142,7 @@ bool VulkanTexture::CreateDirect(VkCommandBuffer cmd, VulkanDeviceAllocator *all
|
||||
if (mapping) {
|
||||
view_info.components = *mapping;
|
||||
} else {
|
||||
view_info.components.r = VK_COMPONENT_SWIZZLE_R;
|
||||
view_info.components.g = VK_COMPONENT_SWIZZLE_G;
|
||||
view_info.components.b = VK_COMPONENT_SWIZZLE_B;
|
||||
view_info.components.a = VK_COMPONENT_SWIZZLE_A;
|
||||
view_info.components = { VK_COMPONENT_SWIZZLE_IDENTITY, VK_COMPONENT_SWIZZLE_IDENTITY, VK_COMPONENT_SWIZZLE_IDENTITY, VK_COMPONENT_SWIZZLE_IDENTITY };
|
||||
}
|
||||
view_info.subresourceRange.aspectMask = aspect;
|
||||
view_info.subresourceRange.baseMipLevel = 0;
|
||||
|
||||
Reference in new issue
Block a user