MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / getRootLayout

Method getRootLayout

RenderSystems/Vulkan/src/OgreVulkanGpuProgramManager.cpp:162–182  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

160 }
161 //-------------------------------------------------------------------------
162 VulkanRootLayout *VulkanGpuProgramManager::getRootLayout( const RootLayout &rootLayout )
163 {
164 VulkanRootLayout *retVal = 0;
165
166 mTmpRootLayout->copyFrom( rootLayout );
167
168 VulkanRootLayoutSet::const_iterator itor = mRootLayouts.find( mTmpRootLayout );
169
170 if( itor == mRootLayouts.end() )
171 {
172 retVal = mTmpRootLayout;
173 mRootLayouts.insert( mTmpRootLayout );
174 mTmpRootLayout = new VulkanRootLayout( this );
175 }
176 else
177 {
178 retVal = *itor;
179 }
180
181 return retVal;
182 }
183 //-------------------------------------------------------------------------
184 VulkanRootLayout *VulkanGpuProgramManager::getRootLayout( const char *rootLayout,
185 const bool bCompute,

Calls 5

copyFromMethod · 0.45
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
parseRootLayoutMethod · 0.45

Tested by

no test coverage detected