-----------------------------------------------------------------------------
| 2317 | } |
| 2318 | //----------------------------------------------------------------------------- |
| 2319 | void GpuProgramParameters::clearAutoConstant( size_t index ) |
| 2320 | { |
| 2321 | GpuLogicalIndexUse *indexUse = _getFloatConstantLogicalIndexUse( index, 0, GPV_GLOBAL ); |
| 2322 | |
| 2323 | if( indexUse ) |
| 2324 | { |
| 2325 | indexUse->variability = GPV_GLOBAL; |
| 2326 | size_t physicalIndex = indexUse->physicalIndex; |
| 2327 | // update existing index if it exists |
| 2328 | for( AutoConstantList::iterator i = mAutoConstants.begin(); i != mAutoConstants.end(); ++i ) |
| 2329 | { |
| 2330 | if( i->physicalIndex == physicalIndex ) |
| 2331 | { |
| 2332 | mAutoConstants.erase( i ); |
| 2333 | break; |
| 2334 | } |
| 2335 | } |
| 2336 | } |
| 2337 | } |
| 2338 | //----------------------------------------------------------------------------- |
| 2339 | void GpuProgramParameters::clearNamedAutoConstant( const String &name ) |
| 2340 | { |
no test coverage detected