VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::MetalSsaoPass Class Reference

#include <platform/graphics/metal/metalSsaoPass.h>

Public Member Functions

void execute (MTL::RenderCommandEncoder *encoder, const SsaoPassParams &params, MetalRenderPipeline *pipeline, const std::shared_ptr< RenderTarget > &renderTarget, const std::vector< std::shared_ptr< MetalBindGroupFormat > > &bindGroupFormats, MTL::SamplerState *defaultSampler, MTL::DepthStencilState *defaultDepthStencilState)
 Execute the SSAO pass on the active render command encoder.
 MetalSsaoPass (MetalGraphicsDevice *device, MetalComposePass *composePass)
 ~MetalSsaoPass ()

Detailed Description

Manages the SSAO pass: lazy resource creation, pipeline lookup, and dispatch. Depends on MetalComposePass for shared full-screen vertex buffer/format.

Definition at line 30 of file metalSsaoPass.h.

Constructor & Destructor Documentation

◆ MetalSsaoPass()

visutwin::canvas::MetalSsaoPass::MetalSsaoPass ( MetalGraphicsDevice * device,
MetalComposePass * composePass )

Definition at line 227 of file metalSsaoPass.cpp.

◆ ~MetalSsaoPass()

visutwin::canvas::MetalSsaoPass::~MetalSsaoPass ( )

Definition at line 232 of file metalSsaoPass.cpp.

Member Function Documentation

◆ execute()

void visutwin::canvas::MetalSsaoPass::execute ( MTL::RenderCommandEncoder * encoder,
const SsaoPassParams & params,
MetalRenderPipeline * pipeline,
const std::shared_ptr< RenderTarget > & renderTarget,
const std::vector< std::shared_ptr< MetalBindGroupFormat > > & bindGroupFormats,
MTL::SamplerState * defaultSampler,
MTL::DepthStencilState * defaultDepthStencilState )

The documentation for this class was generated from the following files: