mirror of https://github.com/bkaradzic/bgfx
Minimal changes for Vulkan support on NX. (#3317)
This commit is contained in:
parent
93961afcfd
commit
14750e1392
|
@ -56,6 +56,7 @@
|
|||
|| BX_PLATFORM_LINUX \
|
||||
|| BX_PLATFORM_WINDOWS \
|
||||
|| BX_PLATFORM_OSX \
|
||||
|| BX_PLATFORM_NX \
|
||||
)
|
||||
|
||||
///
|
||||
|
|
|
@ -6709,7 +6709,11 @@ VK_DESTROY
|
|||
m_sci.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE;
|
||||
m_sci.queueFamilyIndexCount = 0;
|
||||
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;
|
||||
#endif
|
||||
m_sci.oldSwapchain = VK_NULL_HANDLE;
|
||||
|
||||
for (uint32_t ii = 0; ii < BX_COUNTOF(m_backBufferColorImageView); ++ii)
|
||||
|
|
Loading…
Reference in New Issue