MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getBackBufferTex

Method getBackBufferTex

Engine/source/postFx/postEffectManager.cpp:132–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132GFXTextureObject* PostEffectManager::getBackBufferTex()
133{
134 GFXTarget *target = GFX->getActiveRenderTarget();
135
136 if ( mBackBufferCopyTex.isNull() ||
137 target != mLastBackBufferTarget )
138 {
139 const Point2I &targetSize = target->getSize();
140 GFXFormat targetFormat = target->getFormat();
141
142 mBackBufferCopyTex.set( targetSize.x, targetSize.y,
143 targetFormat,
144 &PostFxTextureSRGBProfile, "mBackBufferCopyTex" );
145
146 target->resolveTo( mBackBufferCopyTex );
147 mLastBackBufferTarget = target;
148 }
149
150 return mBackBufferCopyTex;
151}
152
153void PostEffectManager::releaseBackBufferTex()
154{

Callers 3

onPFXProcessedMethod · 0.80
_setupTextureMethod · 0.80
processMethod · 0.80

Calls 6

getActiveRenderTargetMethod · 0.80
isNullMethod · 0.45
getSizeMethod · 0.45
getFormatMethod · 0.45
setMethod · 0.45
resolveToMethod · 0.45

Tested by

no test coverage detected