ngfx::MTLFramebuffer

Inherits from ngfx::Framebuffer

Public Types

Name
typedef std::vector< MTLRenderPassColorAttachmentDescriptor * > ColorAttachments

Public Functions

Name
void create(uint32_t w, uint32_t h, const ColorAttachments & colorAttachments, MTLRenderPassDepthAttachmentDescriptor * depthAttachment =nullptr, MTLRenderPassStencilAttachmentDescriptor * stencilAttachment =nullptr)
virtual ~MTLFramebuffer()

Public Attributes

Name
ColorAttachments colorAttachments
MTLRenderPassDepthAttachmentDescriptor * depthAttachment
MTLRenderPassStencilAttachmentDescriptor * stencilAttachment

Additional inherited members

Public Classes inherited from ngfx::Framebuffer

Name
struct Attachment

Public Functions inherited from ngfx::Framebuffer

Name
virtual ~Framebuffer()

Public Attributes inherited from ngfx::Framebuffer

Name
uint32_t w
uint32_t h
uint32_t layers
uint32_t numAttachments
std::vector< Attachment > attachments

Public Types Documentation

typedef ColorAttachments

typedef std::vector<MTLRenderPassColorAttachmentDescriptor *> ngfx::MTLFramebuffer::ColorAttachments;

Public Functions Documentation

function create

void create(
    uint32_t w,
    uint32_t h,
    const ColorAttachments & colorAttachments,
    MTLRenderPassDepthAttachmentDescriptor * depthAttachment =nullptr,
    MTLRenderPassStencilAttachmentDescriptor * stencilAttachment =nullptr
)

function ~MTLFramebuffer

virtual ~MTLFramebuffer()

Public Attributes Documentation

variable colorAttachments

ColorAttachments colorAttachments;

variable depthAttachment

MTLRenderPassDepthAttachmentDescriptor * depthAttachment = nullptr;

variable stencilAttachment

MTLRenderPassStencilAttachmentDescriptor * stencilAttachment = nullptr;

Updated on 3 April 2021 at 20:21:51 PDT