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

Method UnmapForReading

trinityal/dx11/Tr2TextureALDx11.cpp:878–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876}
877
878void Tr2TextureAL::UnmapForReading( Tr2RenderContextAL& renderContext )
879{
880 if( !m_stagingTexture || !renderContext.IsValid() )
881 {
882 return;
883 }
884 renderContext.m_context->Unmap( m_stagingTexture, 0 );
885 if( !HasFlag( m_cpuUsage, Tr2CpuUsage::READ_OFTEN ) )
886 {
887 m_stagingTexture = nullptr;
888 }
889}
890
891ALResult Tr2TextureAL::MapForWriting( const Tr2TextureSubresource& region, void*& data, uint32_t& pitch, Tr2RenderContextAL& renderContext )
892{

Callers

nothing calls this directly

Calls 3

HasFlagFunction · 0.70
IsValidMethod · 0.45
UnmapMethod · 0.45

Tested by

no test coverage detected