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

Method DownSampleDepth

trinity/PostProcess/Tr2PostProcessRenderer.cpp:948–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948Tr2GpuResourcePool::Texture Tr2PostProcessRenderer::DownSampleDepth( const Tr2TextureAL& depth, Tr2GpuResourcePool& gpuResourcePool, Tr2RenderContext& renderContext )
949{
950 TEMP_PARAM( m_downsampleDepthEffect, "DepthMap", depth );
951 auto destination = gpuResourcePool.GetTempTexture( "Down-sampled Depth", TextureSize2D( depth.GetDesc() ) * 0.5f, ImageIO::PIXEL_FORMAT_R32_FLOAT, Tr2GpuUsage::RENDER_TARGET | Tr2GpuUsage::SHADER_RESOURCE );
952 DrawInto( destination, Tr2LoadAction::DONT_CARE, m_downsampleDepthEffect, renderContext );
953 return destination;
954}
955
956
957Tr2GpuResourcePool::Texture Tr2PostProcessRenderer::RenderBloom( Tr2GpuResourcePool::Texture& dest, Tr2GpuResourcePool& gpuResourcePool, Tr2RenderContext& renderContext, Tr2PPBloomEffect* bloom, Tr2PPDynamicExposureEffect* dynamicExposure )

Callers

nothing calls this directly

Calls 3

TextureSize2DClass · 0.85
DrawIntoFunction · 0.85
GetTempTextureMethod · 0.80

Tested by

no test coverage detected