Skip to content

Commit

Permalink
[Vk] always set RSC_32BIT_INDEX, even if range is limited to 2^24-1
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Nov 4, 2024
1 parent c545473 commit 52e7d95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,9 @@ namespace Ogre
rsc->setCapability( RSC_CUBEMAPPING );
rsc->setCapability( RSC_TEXTURE_COMPRESSION );
rsc->setCapability( RSC_VBO );
// VK_INDEX_TYPE_UINT32 is always supported with range at least 2^24-1
// and even 2^32-1 if mActiveDevice->mDeviceFeatures.fullDrawIndexUint32
rsc->setCapability( RSC_32BIT_INDEX );
rsc->setCapability( RSC_TWO_SIDED_STENCIL );
rsc->setCapability( RSC_STENCIL_WRAP );
if( mActiveDevice->mDeviceFeatures.shaderClipDistance )
Expand Down

0 comments on commit 52e7d95

Please sign in to comment.