Minimal changes for Vulkan support on NX. (#3317)

This commit is contained in:
Daniel Kalmar 2024-06-25 16:19:59 +02:00 committed by GitHub
parent 93961afcfd
commit 14750e1392
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,7 @@
|| BX_PLATFORM_LINUX \ || BX_PLATFORM_LINUX \
|| BX_PLATFORM_WINDOWS \ || BX_PLATFORM_WINDOWS \
|| BX_PLATFORM_OSX \ || BX_PLATFORM_OSX \
|| BX_PLATFORM_NX \
) )
/// ///

View File

@ -6709,7 +6709,11 @@ VK_DESTROY
m_sci.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE; m_sci.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE;
m_sci.queueFamilyIndexCount = 0; m_sci.queueFamilyIndexCount = 0;
m_sci.pQueueFamilyIndices = NULL; m_sci.pQueueFamilyIndices = NULL;
#ifdef BX_PLATFORM_NX
m_sci.preTransform = VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR;
#else
m_sci.preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR; m_sci.preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;
#endif
m_sci.oldSwapchain = VK_NULL_HANDLE; m_sci.oldSwapchain = VK_NULL_HANDLE;
for (uint32_t ii = 0; ii < BX_COUNTOF(m_backBufferColorImageView); ++ii) for (uint32_t ii = 0; ii < BX_COUNTOF(m_backBufferColorImageView); ++ii)