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

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

Public Member Functions

 DepthAttachment (MTL::PixelFormat format, bool hasStencil)
void destroy (MetalGraphicsDevice *device)
 ~DepthAttachment ()=default

Public Attributes

MTL::Texture * depthTexture = nullptr
bool depthTextureInternal = false
bool hasStencil = false
MTL::Texture * multisampledDepthBuffer = nullptr
MTL::PixelFormat pixelFormat = MTL::PixelFormatInvalid

Detailed Description

Private class storing info about depth-stencil buffer.

Definition at line 36 of file metalRenderTarget.h.

Constructor & Destructor Documentation

◆ DepthAttachment()

visutwin::canvas::DepthAttachment::DepthAttachment ( MTL::PixelFormat format,
bool hasStencil )
explicit

Definition at line 57 of file metalRenderTarget.cpp.

References hasStencil, and pixelFormat.

◆ ~DepthAttachment()

visutwin::canvas::DepthAttachment::~DepthAttachment ( )
default

Member Function Documentation

◆ destroy()

void visutwin::canvas::DepthAttachment::destroy ( MetalGraphicsDevice * device)

Definition at line 62 of file metalRenderTarget.cpp.

References depthTexture, depthTextureInternal, and multisampledDepthBuffer.

Member Data Documentation

◆ depthTexture

MTL::Texture* visutwin::canvas::DepthAttachment::depthTexture = nullptr

Definition at line 44 of file metalRenderTarget.h.

Referenced by destroy().

◆ depthTextureInternal

bool visutwin::canvas::DepthAttachment::depthTextureInternal = false

Definition at line 47 of file metalRenderTarget.h.

Referenced by destroy().

◆ hasStencil

bool visutwin::canvas::DepthAttachment::hasStencil = false

Definition at line 41 of file metalRenderTarget.h.

Referenced by DepthAttachment().

◆ multisampledDepthBuffer

MTL::Texture* visutwin::canvas::DepthAttachment::multisampledDepthBuffer = nullptr

Definition at line 50 of file metalRenderTarget.h.

Referenced by destroy().

◆ pixelFormat

MTL::PixelFormat visutwin::canvas::DepthAttachment::pixelFormat = MTL::PixelFormatInvalid

Definition at line 38 of file metalRenderTarget.h.

Referenced by DepthAttachment().


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