| 685 | } |
| 686 | |
| 687 | Tr2GpuResourcePool::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 | |
| 702 | Tr2GpuResourcePool::Texture EveSpaceSceneRenderDriver::GetOpaqueColorMapIfNeeded( const TextureSize2D& size, const Span<TempOutput>& outputs ) |
| 703 | { |
nothing calls this directly
no test coverage detected