|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <platform/graphics/metal/metalTaaPass.h>
Public Member Functions | |
| void | execute (MTL::RenderCommandEncoder *encoder, Texture *sourceTexture, Texture *historyTexture, Texture *depthTexture, const Matrix4 &viewProjectionPrevious, const Matrix4 &viewProjectionInverse, const std::array< float, 4 > &jitters, const std::array< float, 4 > &cameraParams, bool highQuality, bool historyValid, MetalRenderPipeline *pipeline, const std::shared_ptr< RenderTarget > &renderTarget, const std::vector< std::shared_ptr< MetalBindGroupFormat > > &bindGroupFormats, MTL::SamplerState *defaultSampler, MTL::DepthStencilState *defaultDepthStencilState) |
| Execute the TAA resolve pass on the active render command encoder. | |
| MetalTaaPass (MetalGraphicsDevice *device, MetalComposePass *composePass) | |
| ~MetalTaaPass () | |
Manages the TAA resolve pass: lazy resource creation, pipeline lookup, and dispatch. Depends on MetalComposePass for shared full-screen vertex buffer/format.
Definition at line 31 of file metalTaaPass.h.
| visutwin::canvas::MetalTaaPass::MetalTaaPass | ( | MetalGraphicsDevice * | device, |
| MetalComposePass * | composePass ) |
Definition at line 200 of file metalTaaPass.cpp.
| visutwin::canvas::MetalTaaPass::~MetalTaaPass | ( | ) |
Definition at line 205 of file metalTaaPass.cpp.
| void visutwin::canvas::MetalTaaPass::execute | ( | MTL::RenderCommandEncoder * | encoder, |
| Texture * | sourceTexture, | ||
| Texture * | historyTexture, | ||
| Texture * | depthTexture, | ||
| const Matrix4 & | viewProjectionPrevious, | ||
| const Matrix4 & | viewProjectionInverse, | ||
| const std::array< float, 4 > & | jitters, | ||
| const std::array< float, 4 > & | cameraParams, | ||
| bool | highQuality, | ||
| bool | historyValid, | ||
| MetalRenderPipeline * | pipeline, | ||
| const std::shared_ptr< RenderTarget > & | renderTarget, | ||
| const std::vector< std::shared_ptr< MetalBindGroupFormat > > & | bindGroupFormats, | ||
| MTL::SamplerState * | defaultSampler, | ||
| MTL::DepthStencilState * | defaultDepthStencilState ) |
Execute the TAA resolve pass on the active render command encoder.
Definition at line 243 of file metalTaaPass.cpp.
References visutwin::canvas::Primitive::base, visutwin::canvas::Primitive::count, visutwin::canvas::CULLFACE_NONE, visutwin::canvas::MetalRenderPipeline::get(), visutwin::canvas::Texture::height(), visutwin::canvas::Texture::impl(), visutwin::canvas::Primitive::indexed, visutwin::canvas::PRIMITIVE_TRIANGLES, visutwin::canvas::metal::toSimdMatrix(), visutwin::canvas::Primitive::type, and visutwin::canvas::Texture::width().