Axmol Engine 2.4.0-258ceca
|
create and manager default depth and stencil attachment. More...
#include <UtilsMTL.h>
Static Public Member Functions | |
static void | updateDefaultColorAttachmentTexture (id< MTLTexture > texture) |
Update default color attachment texture. | |
static id< MTLTexture > | getDefaultDepthStencilTexture () |
Get the default combined depth and stencil texture. | |
static MTLPixelFormat | toMTLPixelFormat (PixelFormat textureFormat) |
Convert backend::PixelFormat to MTLPixelFormat. | |
static void | generateMipmaps (id< MTLTexture > texture) |
Generate a complete set of mipmaps in given texture. | |
static void | swizzleImage (unsigned char *image, std::size_t width, std::size_t height, MTLPixelFormat format) |
Swizzle the iamge form the given format to MTLPixelFormatRGBA8Unorm. | |
create and manager default depth and stencil attachment.
generate mipmaps. read pixles from texture.
|
static |
Update default color attachment texture.
texture | Specifies the texture to be setted to the color attachemnt. |
|
static |
Get the default combined depth and stencil texture.
|
static |
Convert backend::PixelFormat to MTLPixelFormat.
textureFormat | Specifies a pixel format to be converted. |
|
static |
Generate a complete set of mipmaps in given texture.
texture | Specifies a texture to generate mipmap. |
|
static |
Swizzle the iamge form the given format to MTLPixelFormatRGBA8Unorm.
image | Specifies the image to be swizzled. |
width | Specifies the width of the image. |
heigth | Specifies the height of the image. |
format | Specifies the format of the image. |