#include <OgreMetalDepthBuffer.h>
|
| MetalDepthBuffer (uint16 poolId, MetalRenderSystem *renderSystem, uint32 width, uint32 height, uint32 fsaa, MTLPixelFormat pixelFormat, bool _isManual, id< MTLTexture > depthTexture, id< MTLTexture > stencilTexture, MetalDevice *device) |
|
virtual | ~MetalDepthBuffer () |
|
MTLPixelFormat | getFormat () const |
|
MetalDevice * | getOwnerDevice (void) const |
|
virtual bool | isCompatible (RenderTarget *renderTarget) const |
| Returns whether the specified RenderTarget is compatible with this DepthBuffer That is, this DepthBuffer can be attached to that RenderTarget.
|
|
| DepthBuffer (uint16 poolId, uint32 width, uint32 height, uint32 fsaa, bool manual) |
|
virtual | ~DepthBuffer () |
|
virtual void | _notifyRenderTargetAttached (RenderTarget *renderTarget) |
| Called when a RenderTarget is attaches this DepthBuffer.
|
|
virtual void | _notifyRenderTargetDetached (RenderTarget *renderTarget) |
| Called when a RenderTarget is detaches from this DepthBuffer.
|
|
void | _setPoolId (uint16 poolId) |
| Sets the pool id in which this DepthBuffer lives.
|
|
uint32 | getFSAA () const |
|
virtual uint32 | getHeight () const |
|
virtual uint16 | getPoolId () const |
| Gets the pool id in which this DepthBuffer lives.
|
|
virtual uint32 | getWidth () const |
|
bool | isManual () const |
| Manual DepthBuffers are cleared in RenderSystem's destructor.
|
|
◆ MetalDepthBuffer()
◆ ~MetalDepthBuffer()
virtual Ogre::MetalDepthBuffer::~MetalDepthBuffer |
( |
| ) |
|
|
virtual |
◆ isCompatible()
Returns whether the specified RenderTarget is compatible with this DepthBuffer That is, this DepthBuffer can be attached to that RenderTarget.
Most APIs impose the following restrictions:
Width & height must be equal or higher than the render target's
They must be of the same bit depth.
They need to have the same FSAA setting
- Parameters
-
renderTarget | The render target to test against |
Reimplemented from Ogre::DepthBuffer.
◆ getOwnerDevice()
◆ getFormat()
◆ mDepthAttachmentDesc
◆ mStencilAttachmentDesc
The documentation for this class was generated from the following file: