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

Method GetCustomStencilMapIfNeeded

trinity/Eve/EveSpaceSceneRenderDriver.cpp:687–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687Tr2GpuResourcePool::Texture EveSpaceSceneRenderDriver::GetCustomStencilMapIfNeeded( const TextureSize2D& size, const Span<TempOutput>& outputs )
688{
689 auto namedOutput = FindNamedOutput( outputs, "CustomStencilMap" );
690 if( m_customStencilFormat != ImageIO::PIXEL_FORMAT_UNKNOWN || namedOutput )
691 {
692 auto texture = m_gpuResourcePool.GetTempTexture( "customStencil", size, m_customStencilFormat, Tr2GpuUsage::RENDER_TARGET | Tr2GpuUsage::SHADER_RESOURCE );
693 if( namedOutput )
694 {
695 namedOutput->texture = texture;
696 }
697 return texture;
698 }
699 return {};
700}
701
702Tr2GpuResourcePool::Texture EveSpaceSceneRenderDriver::GetOpaqueColorMapIfNeeded( const TextureSize2D& size, const Span<TempOutput>& outputs )
703{

Callers

nothing calls this directly

Calls 2

FindNamedOutputFunction · 0.85
GetTempTextureMethod · 0.80

Tested by

no test coverage detected