MCPcopy Create free account
hub / github.com/carbonengine/trinity / MapForReading

Method MapForReading

trinity/Tr2PickBuffer.cpp:79–92  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

77
78// ------------------------------------------------------------------------------------------------------
79bool 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
94void Tr2PickBuffer::UnmapForReading( Tr2RenderContext& renderContext )
95{

Callers 15

CopyTextureIntoAtlasMethod · 0.45
UpdateMipMapsMethod · 0.45
PickObjectMethod · 0.45
SaveMethod · 0.45
CopyFromTextureMethod · 0.45
CopyFromTextureResMethod · 0.45
PyGetDataFunction · 0.45
PyGetDataFunction · 0.45
UpdateLiveCountMethod · 0.45

Calls 2

IsValidMethod · 0.45

Tested by

no test coverage detected