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

Method GetTexture

trinity/Tr2RenderTarget.cpp:237–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237Tr2TextureAL* Tr2RenderTarget::GetTexture()
238{
239 auto& rt = GetRenderTarget();
240 if( rt.IsValid() && Tr2GpuUsage::HasFlag( rt.GetGpuUsage(), Tr2GpuUsage::SHADER_RESOURCE ) )
241 {
242 return &rt;
243 }
244 return nullptr;
245}
246
247Tr2RenderTarget::OnTextureChangeEvent& Tr2RenderTarget::OnTextureChange()
248{

Callers

nothing calls this directly

Calls 3

HasFlagFunction · 0.50
IsValidMethod · 0.45
GetGpuUsageMethod · 0.45

Tested by

no test coverage detected