-------------------------------------------------------------------------
| 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, |
no test coverage detected