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

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

Public Member Functions

void execute (MTL::RenderCommandEncoder *encoder, const CoCPassParams &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 CoC pass on the active render command encoder.
 MetalCoCPass (MetalGraphicsDevice *device, MetalComposePass *composePass)
 ~MetalCoCPass ()

Detailed Description

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

Definition at line 30 of file metalCoCPass.h.

Constructor & Destructor Documentation

◆ MetalCoCPass()

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

Definition at line 89 of file metalCoCPass.cpp.

◆ ~MetalCoCPass()

visutwin::canvas::MetalCoCPass::~MetalCoCPass ( )

Definition at line 94 of file metalCoCPass.cpp.

Member Function Documentation

◆ execute()

void visutwin::canvas::MetalCoCPass::execute ( MTL::RenderCommandEncoder * encoder,
const CoCPassParams & 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: