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

Method GetTexture

trinity/Tr2DepthStencil.cpp:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76Tr2TextureAL* Tr2DepthStencil::GetTexture()
77{
78 if( m_depthStencil.IsValid() && Tr2GpuUsage::HasFlag( m_depthStencil.GetGpuUsage(), Tr2GpuUsage::SHADER_RESOURCE ) )
79 {
80 return &m_depthStencil;
81 }
82 return nullptr;
83}
84
85Tr2DepthStencil::OnTextureChangeEvent& Tr2DepthStencil::OnTextureChange()
86{

Callers

nothing calls this directly

Calls 3

HasFlagFunction · 0.50
IsValidMethod · 0.45
GetGpuUsageMethod · 0.45

Tested by

no test coverage detected