Skip to content

Commit

Permalink
Mipmaps Gen: default load/store depth & stencil actions to dont_care
Browse files Browse the repository at this point in the history
CompositorPassMipmap doesn't even call setRenderPassDescToCurrent(),
however setting up the RTV is still important for analyzeBarriers() to
do its job properly.

But we don't use the depth or stencil buffers at all.

This reverts commit 4948d0a since it
does the same job, but cleaner.
  • Loading branch information
darksylinc committed Dec 11, 2024
1 parent 4948d0a commit 0d20133
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ namespace Ogre
mGaussianDeviationFactor( 0.5f ),
mKernelRadius( 8 )
{
mLoadActionDepth = LoadAction::DontCare;
mLoadActionStencil = LoadAction::DontCare;
mStoreActionDepth = StoreAction::DontCare;
mStoreActionStencil = StoreAction::DontCare;
}
};

Expand Down
10 changes: 0 additions & 10 deletions Samples/Media/2.0/scripts/Compositors/PlanarReflections.compositor
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,6 @@ compositor_node PlanarReflectionsReflectiveRenderingNode

pass generate_mipmaps
{
load
{
depth dont_care
stencil dont_care
}
store
{
depth dont_care
stencil dont_care
}
mipmap_method compute_hq

profiling_id "Mipmap Generation (HQ)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,6 @@ compositor_node ScreenSpaceReflectionsPostprocessNode

pass generate_mipmaps
{
load
{
depth dont_care
stencil dont_care
}
store
{
depth dont_care
stencil dont_care
}
mipmap_method compute_hq
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ compositor_node Terra/GpuNormalMapper

pass generate_mipmaps
{
load
{
depth dont_care
stencil dont_care
}
store
{
depth dont_care
stencil dont_care
}
}
}
}
Expand All @@ -43,16 +33,6 @@ compositor_node Terra/GpuNormalMapperU16

pass generate_mipmaps
{
load
{
depth dont_care
stencil dont_care
}
store
{
depth dont_care
stencil dont_care
}
}
}
}
Expand Down

0 comments on commit 0d20133

Please sign in to comment.