Skip to content

Commit

Permalink
Merge branch 'v3-0'
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Mar 21, 2024
2 parents 07f9773 + a7d483a commit 1ea6022
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RenderSystems/Vulkan/include/OgreVulkanRenderSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ namespace Ogre

bool hasAnisotropicMipMapFilter() const override { return true; }

void getCustomAttribute( const String &name, void *pData ) override;

void setClipPlanesImpl( const PlaneList &clipPlanes ) override;
void initialiseFromRenderSystemCapabilities( RenderSystemCapabilities *caps,
Window *primary ) override;
Expand Down
37 changes: 37 additions & 0 deletions RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2538,6 +2538,43 @@ namespace Ogre
RenderSystem::endGpuDebuggerFrameCapture( window, bDiscard );
}
//-------------------------------------------------------------------------
void VulkanRenderSystem::getCustomAttribute( const String &name, void *pData )
{
if( name == "VkInstance" )
{
*(VkInstance *)pData = mDevice->mInstance;
return;
}
else if( name == "VkPhysicalDevice" )
{
*(VkPhysicalDevice *)pData = mDevice->mPhysicalDevice;
return;
}
else if( name == "VulkanDevice" )
{
*(VulkanDevice **)pData = mDevice;
return;
}
else if( name == "VkDevice" )
{
*(VkDevice *)pData = mDevice->mDevice;
return;
}
else if( name == "mPresentQueue" )
{
*(VkQueue *)pData = mDevice->mPresentQueue;
return;
}
else if( name == "VulkanQueue" )
{
*(VulkanQueue **)pData = &mDevice->mGraphicsQueue;
return;
}

OGRE_EXCEPT( Exception::ERR_INVALIDPARAMS, "Attribute not found: " + name,
"VulkanRenderSystem::getCustomAttribute" );
}
//-------------------------------------------------------------------------
void VulkanRenderSystem::setClipPlanesImpl( const PlaneList &clipPlanes ) {}
//-------------------------------------------------------------------------
void VulkanRenderSystem::initialiseFromRenderSystemCapabilities( RenderSystemCapabilities *caps,
Expand Down

0 comments on commit 1ea6022

Please sign in to comment.