ngfx::MTLSurface

Inherits from ngfx::Surface

Public Functions

Name
virtual ~MTLSurface()
CAMetalLayer * getMetalLayer()

Public Attributes

Name
NSView * view
id< CAMetalDrawable > drawable
std::unique_ptr< MTLDepthStencilTexture > depthStencilTexture

Additional inherited members

Public Functions inherited from ngfx::Surface

Name
Surface()
Surface(uint32_t w, uint32_t h, bool offscreen =false)
virtual ~Surface()

Public Attributes inherited from ngfx::Surface

Name
uint32_t w
uint32_t h
bool offscreen

Public Functions Documentation

function ~MTLSurface

inline virtual ~MTLSurface()

function getMetalLayer

inline CAMetalLayer * getMetalLayer()

Public Attributes Documentation

variable view

NSView * view = nullptr;

variable drawable

id< CAMetalDrawable > drawable;

variable depthStencilTexture

std::unique_ptr< MTLDepthStencilTexture > depthStencilTexture;

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