Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
_metal

Classes

class  BufferManager
 A static class to manage BufferMTL Schedule next available buffer at the beginning of frame for the render pass. More...
class  BufferImpl
 Used to store vertex and index data data. More...
class  DepthStencilStateImpl
 A class represent a depth/stencil test status. More...
class  GraphicsContextImpl
 Store encoded commands for the GPU to execute. More...
class  GraphicsDeviceImpl
 Create resources from MTLDevice. More...
class  GraphicsPipelineImpl
 Create and compile a new MTLRenderPipelineState object synchronously. More...
class  ProgramImpl
 A metal Program. More...
class  ShaderModuleImpl
 To Create a vertex or fragment shader. More...
class  TextureImpl
 The texture implementation supports 2D, cubemap, and 2D array textures. More...
struct  UtilsMTL
 create and manager default depth and stencil attachment. More...

Functions

static MTLPixelFormat toMTLPixelFormat (PixelFormat textureFormat)
 Convert rhi::PixelFormat to MTLPixelFormat.
static void generateMipmaps (id< MTLTexture > texture)
 Generate a complete set of mipmaps in given texture.
static void swizzleImage (unsigned char *image, size_t width, size_t height, MTLPixelFormat format)
 Swizzle the iamge form the given format to MTLPixelFormatRGBA8Unorm.

Detailed Description

Function Documentation

◆ toMTLPixelFormat()

MTLPixelFormat toMTLPixelFormat ( PixelFormat textureFormat)
static

Convert rhi::PixelFormat to MTLPixelFormat.

Parameters
textureFormatSpecifies a pixel format to be converted.
Returns
A MTLPixelFormat.

◆ generateMipmaps()

void generateMipmaps ( id< MTLTexture > texture)
static

Generate a complete set of mipmaps in given texture.

Parameters
textureSpecifies a texture to generate mipmap.

◆ swizzleImage()

void swizzleImage ( unsigned char * image,
size_t width,
size_t height,
MTLPixelFormat format )
static

Swizzle the iamge form the given format to MTLPixelFormatRGBA8Unorm.

Parameters
imageSpecifies the image to be swizzled.
widthSpecifies the width of the image.
heigthSpecifies the height of the image.
formatSpecifies the format of the image.