|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#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 |
Private class storing info about depth-stencil buffer.
Definition at line 36 of file metalRenderTarget.h.
|
explicit |
Definition at line 57 of file metalRenderTarget.cpp.
References hasStencil, and pixelFormat.
|
default |
| void visutwin::canvas::DepthAttachment::destroy | ( | MetalGraphicsDevice * | device | ) |
Definition at line 62 of file metalRenderTarget.cpp.
References depthTexture, depthTextureInternal, and multisampledDepthBuffer.
| MTL::Texture* visutwin::canvas::DepthAttachment::depthTexture = nullptr |
Definition at line 44 of file metalRenderTarget.h.
Referenced by destroy().
| bool visutwin::canvas::DepthAttachment::depthTextureInternal = false |
Definition at line 47 of file metalRenderTarget.h.
Referenced by destroy().
| bool visutwin::canvas::DepthAttachment::hasStencil = false |
Definition at line 41 of file metalRenderTarget.h.
Referenced by DepthAttachment().
| MTL::Texture* visutwin::canvas::DepthAttachment::multisampledDepthBuffer = nullptr |
Definition at line 50 of file metalRenderTarget.h.
Referenced by destroy().
| MTL::PixelFormat visutwin::canvas::DepthAttachment::pixelFormat = MTL::PixelFormatInvalid |
Definition at line 38 of file metalRenderTarget.h.
Referenced by DepthAttachment().