@@ -375,7 +375,7 @@ void BuildCommandBuffers()
375
375
// We need to use the internal Blit method to copy the camera target or it'll fail
376
376
// on tiled GPU as it won't be able to resolve
377
377
int tempTarget0 = m_TargetPool . Get ( ) ;
378
- context . GetScreenSpaceTemporaryRT ( cmd , tempTarget0 , 24 , sourceFormat ) ;
378
+ context . GetScreenSpaceTemporaryRT ( cmd , tempTarget0 , 0 , sourceFormat ) ;
379
379
cmd . Blit ( cameraTarget , tempTarget0 ) ;
380
380
context . source = tempTarget0 ;
381
381
@@ -384,7 +384,7 @@ void BuildCommandBuffers()
384
384
if ( opaqueOnlyEffects > 1 )
385
385
{
386
386
tempTarget1 = m_TargetPool . Get ( ) ;
387
- context . GetScreenSpaceTemporaryRT ( cmd , tempTarget1 , 24 , sourceFormat ) ;
387
+ context . GetScreenSpaceTemporaryRT ( cmd , tempTarget1 , 0 , sourceFormat ) ;
388
388
context . destination = tempTarget1 ;
389
389
}
390
390
else context . destination = cameraTarget ;
@@ -420,7 +420,7 @@ void BuildCommandBuffers()
420
420
// Same as before, first blit needs to use the builtin Blit command to properly handle
421
421
// tiled GPUs
422
422
int tempRt = m_TargetPool . Get ( ) ;
423
- context . GetScreenSpaceTemporaryRT ( m_LegacyCmdBuffer , tempRt , 24 , sourceFormat , RenderTextureReadWrite . sRGB ) ;
423
+ context . GetScreenSpaceTemporaryRT ( m_LegacyCmdBuffer , tempRt , 0 , sourceFormat , RenderTextureReadWrite . sRGB ) ;
424
424
m_LegacyCmdBuffer . Blit ( cameraTarget , tempRt , RuntimeUtilities . copyStdMaterial , stopNaNPropagation ? 1 : 0 ) ;
425
425
m_NaNKilled = stopNaNPropagation ;
426
426
@@ -633,7 +633,7 @@ public void Render(PostProcessRenderContext context)
633
633
if ( stopNaNPropagation && ! m_NaNKilled )
634
634
{
635
635
lastTarget = m_TargetPool . Get ( ) ;
636
- context . GetScreenSpaceTemporaryRT ( cmd , lastTarget , 24 , context . sourceFormat ) ;
636
+ context . GetScreenSpaceTemporaryRT ( cmd , lastTarget , 0 , context . sourceFormat ) ;
637
637
cmd . BlitFullscreenTriangle ( context . source , lastTarget , RuntimeUtilities . copySheet , 1 ) ;
638
638
context . source = lastTarget ;
639
639
m_NaNKilled = true ;
@@ -658,7 +658,7 @@ public void Render(PostProcessRenderContext context)
658
658
659
659
var taaTarget = m_TargetPool . Get ( ) ;
660
660
var finalDestination = context . destination ;
661
- context . GetScreenSpaceTemporaryRT ( cmd , taaTarget , 24 , context . sourceFormat ) ;
661
+ context . GetScreenSpaceTemporaryRT ( cmd , taaTarget , 0 , context . sourceFormat ) ;
662
662
context . destination = taaTarget ;
663
663
temporalAntialiasing . Render ( context ) ;
664
664
context . source = taaTarget ;
@@ -708,7 +708,7 @@ int RenderInjectionPoint(PostProcessEvent evt, PostProcessRenderContext context,
708
708
var finalDestination = context . destination ;
709
709
710
710
var cmd = context . command ;
711
- context . GetScreenSpaceTemporaryRT ( cmd , tempTarget , 24 , context . sourceFormat ) ;
711
+ context . GetScreenSpaceTemporaryRT ( cmd , tempTarget , 0 , context . sourceFormat ) ;
712
712
context . destination = tempTarget ;
713
713
RenderList ( sortedBundles [ evt ] , context , marker ) ;
714
714
context . source = tempTarget ;
@@ -759,9 +759,9 @@ void RenderList(List<SerializedBundleRef> list, PostProcessRenderContext context
759
759
m_Targets . Add ( context . destination ) ; // Last target is always destination
760
760
761
761
// Render
762
- context . GetScreenSpaceTemporaryRT ( cmd , tempTarget1 , 24 , context . sourceFormat ) ;
762
+ context . GetScreenSpaceTemporaryRT ( cmd , tempTarget1 , 0 , context . sourceFormat ) ;
763
763
if ( count > 2 )
764
- context . GetScreenSpaceTemporaryRT ( cmd , tempTarget2 , 24 , context . sourceFormat ) ;
764
+ context . GetScreenSpaceTemporaryRT ( cmd , tempTarget2 , 0 , context . sourceFormat ) ;
765
765
766
766
for ( int i = 0 ; i < count ; i ++ )
767
767
{
@@ -797,7 +797,7 @@ int RenderBuiltins(PostProcessRenderContext context, bool isFinalPass, int relea
797
797
{
798
798
// Render to an intermediate target as this won't be the final pass
799
799
tempTarget = m_TargetPool . Get ( ) ;
800
- context . GetScreenSpaceTemporaryRT ( cmd , tempTarget , 24 , context . sourceFormat ) ;
800
+ context . GetScreenSpaceTemporaryRT ( cmd , tempTarget , 0 , context . sourceFormat ) ;
801
801
context . destination = tempTarget ;
802
802
803
803
// Handle FXAA's keep alpha mode
@@ -889,7 +889,7 @@ void RenderFinalPass(PostProcessRenderContext context, int releaseTargetAfterUse
889
889
{
890
890
tempTarget = m_TargetPool . Get ( ) ;
891
891
var finalDestination = context . destination ;
892
- context . GetScreenSpaceTemporaryRT ( context . command , tempTarget , 24 , context . sourceFormat ) ;
892
+ context . GetScreenSpaceTemporaryRT ( context . command , tempTarget , 0 , context . sourceFormat ) ;
893
893
context . destination = tempTarget ;
894
894
subpixelMorphologicalAntialiasing . Render ( context ) ;
895
895
context . source = tempTarget ;
@@ -929,7 +929,7 @@ int RenderEffect<T>(PostProcessRenderContext context, bool useTempTarget = false
929
929
930
930
var finalDestination = context . destination ;
931
931
var tempTarget = m_TargetPool . Get ( ) ;
932
- context . GetScreenSpaceTemporaryRT ( context . command , tempTarget , 24 , context . sourceFormat ) ;
932
+ context . GetScreenSpaceTemporaryRT ( context . command , tempTarget , 0 , context . sourceFormat ) ;
933
933
context . destination = tempTarget ;
934
934
effect . renderer . Render ( context ) ;
935
935
context . source = tempTarget ;
0 commit comments