Flutter Engine
The Flutter Engine
Macros | Functions | Variables
GrMtlCaps.mm File Reference
#include "src/gpu/ganesh/mtl/GrMtlCaps.h"
#include "include/core/SkRect.h"
#include "include/core/SkTextureCompressionType.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/ganesh/mtl/GrMtlBackendSurface.h"
#include "src/core/SkCompressedDataUtils.h"
#include "src/core/SkReadBuffer.h"
#include "src/gpu/KeyBuilder.h"
#include "src/gpu/ganesh/GrBackendUtils.h"
#include "src/gpu/ganesh/GrProcessor.h"
#include "src/gpu/ganesh/GrProgramDesc.h"
#include "src/gpu/ganesh/GrProgramInfo.h"
#include "src/gpu/ganesh/GrRenderTarget.h"
#include "src/gpu/ganesh/GrRenderTargetProxy.h"
#include "src/gpu/ganesh/GrShaderCaps.h"
#include "src/gpu/ganesh/GrSurfaceProxy.h"
#include "src/gpu/ganesh/mtl/GrMtlRenderTarget.h"
#include "src/gpu/ganesh/mtl/GrMtlTexture.h"
#include "src/gpu/ganesh/mtl/GrMtlUtil.h"
#include "src/gpu/mtl/MtlUtilsPriv.h"

Go to the source code of this file.

Macros

#define kMTLPixelFormatB5G6R5Unorm   MTLPixelFormat(40)
 
#define kMTLPixelFormatABGR4Unorm   MTLPixelFormat(42)
 
#define kMTLPixelFormatETC2_RGB8   MTLPixelFormat(180)
 

Functions

static bool format_is_srgb (MTLPixelFormat format)
 

Variables

static constexpr MTLPixelFormat kMtlFormats []
 

Macro Definition Documentation

◆ kMTLPixelFormatABGR4Unorm

#define kMTLPixelFormatABGR4Unorm   MTLPixelFormat(42)

Definition at line 587 of file GrMtlCaps.mm.

◆ kMTLPixelFormatB5G6R5Unorm

#define kMTLPixelFormatB5G6R5Unorm   MTLPixelFormat(40)

Definition at line 586 of file GrMtlCaps.mm.

◆ kMTLPixelFormatETC2_RGB8

#define kMTLPixelFormatETC2_RGB8   MTLPixelFormat(180)

Definition at line 588 of file GrMtlCaps.mm.

Function Documentation

◆ format_is_srgb()

static bool format_is_srgb ( MTLPixelFormat  format)
static

Definition at line 452 of file GrMtlCaps.mm.

452 {
453 switch (format) {
454 case MTLPixelFormatRGBA8Unorm_sRGB:
455 case MTLPixelFormatBGRA8Unorm_sRGB:
456 return true;
457 default:
458 return false;
459 }
460}
uint32_t uint32_t * format

Variable Documentation

◆ kMtlFormats

constexpr MTLPixelFormat kMtlFormats[]
staticconstexpr
Initial value:
= {
MTLPixelFormatRGBA8Unorm,
MTLPixelFormatR8Unorm,
MTLPixelFormatA8Unorm,
MTLPixelFormatBGRA8Unorm,
MTLPixelFormatRGBA16Float,
MTLPixelFormatR16Float,
MTLPixelFormatRG8Unorm,
MTLPixelFormatRGB10A2Unorm,
MTLPixelFormatBGR10A2Unorm,
MTLPixelFormatRGBA8Unorm_sRGB,
MTLPixelFormatR16Unorm,
MTLPixelFormatRG16Unorm,
MTLPixelFormatRGBA16Unorm,
MTLPixelFormatRG16Float,
MTLPixelFormatInvalid,
}
#define kMTLPixelFormatB5G6R5Unorm
Definition: GrMtlCaps.mm:586
#define kMTLPixelFormatETC2_RGB8
Definition: GrMtlCaps.mm:588
#define kMTLPixelFormatABGR4Unorm
Definition: GrMtlCaps.mm:587

Definition at line 592 of file GrMtlCaps.mm.