------------------------------------------------------------------------------------------------------
| 77 | |
| 78 | // ------------------------------------------------------------------------------------------------------ |
| 79 | bool Tr2PickBuffer::MapForReading( bool synchronize, const void*& data, uint32_t& pitch, Tr2RenderContext& renderContext ) |
| 80 | { |
| 81 | CCP_STATS_ZONE( __FUNCTION__ ); |
| 82 | |
| 83 | if( !m_pickTarget.IsValid() ) |
| 84 | { |
| 85 | // This could happen if device is lost |
| 86 | return false; |
| 87 | } |
| 88 | |
| 89 | HRESULT hr = m_pickTarget.MapForReading( Tr2TextureSubresource( 0 ), synchronize, data, pitch, renderContext ); |
| 90 | |
| 91 | return SUCCEEDED( hr ); |
| 92 | } |
| 93 | |
| 94 | void Tr2PickBuffer::UnmapForReading( Tr2RenderContext& renderContext ) |
| 95 | { |
no test coverage detected