Flutter Engine
The Flutter Engine
Namespaces | Functions
formats_mtl.h File Reference
#include <Metal/Metal.h>
#include <optional>
#include "flutter/fml/build_config.h"
#include "impeller/base/validation.h"
#include "impeller/core/formats.h"
#include "impeller/core/texture_descriptor.h"
#include "impeller/geometry/color.h"

Go to the source code of this file.

Namespaces

namespace  impeller
 

Functions

constexpr PixelFormat impeller::FromMTLPixelFormat (MTLPixelFormat format)
 
MTLPixelFormat impeller::SafeMTLPixelFormatDepth24Unorm_Stencil8 ()
 
MTLPixelFormat impeller::SafeMTLPixelFormatBGR10_XR_sRGB ()
 
MTLPixelFormat impeller::SafeMTLPixelFormatBGR10_XR ()
 
MTLPixelFormat impeller::SafeMTLPixelFormatBGRA10_XR ()
 
constexpr MTLPixelFormat impeller::ToMTLPixelFormat (PixelFormat format)
 
constexpr MTLBlendFactor impeller::ToMTLBlendFactor (BlendFactor type)
 
constexpr MTLPrimitiveType impeller::ToMTLPrimitiveType (PrimitiveType type)
 
constexpr MTLTriangleFillMode impeller::ToMTLTriangleFillMode (PolygonMode mode)
 
constexpr MTLIndexType impeller::ToMTLIndexType (IndexType type)
 
constexpr MTLCullMode impeller::ToMTLCullMode (CullMode mode)
 
constexpr MTLBlendOperation impeller::ToMTLBlendOperation (BlendOperation type)
 
constexpr MTLColorWriteMask impeller::ToMTLColorWriteMask (ColorWriteMask type)
 
constexpr MTLCompareFunction impeller::ToMTLCompareFunction (CompareFunction func)
 
constexpr MTLStencilOperation impeller::ToMTLStencilOperation (StencilOperation op)
 
constexpr MTLLoadAction impeller::ToMTLLoadAction (LoadAction action)
 
constexpr LoadAction impeller::FromMTLLoadAction (MTLLoadAction action)
 
constexpr MTLStoreAction impeller::ToMTLStoreAction (StoreAction action)
 
constexpr StoreAction impeller::FromMTLStoreAction (MTLStoreAction action)
 
constexpr MTLSamplerMinMagFilter impeller::ToMTLSamplerMinMagFilter (MinMagFilter filter)
 
constexpr MTLSamplerMipFilter impeller::ToMTLSamplerMipFilter (MipFilter filter)
 
constexpr MTLSamplerAddressMode impeller::ToMTLSamplerAddressMode (SamplerAddressMode mode)
 
MTLClearColor impeller::ToMTLClearColor (const Color &color)
 
constexpr MTLTextureType impeller::ToMTLTextureType (TextureType type)
 
MTLRenderPipelineColorAttachmentDescriptor * impeller::ToMTLRenderPipelineColorAttachmentDescriptor (ColorAttachmentDescriptor descriptor)
 
MTLDepthStencilDescriptor * impeller::ToMTLDepthStencilDescriptor (std::optional< DepthAttachmentDescriptor > depth, std::optional< StencilAttachmentDescriptor > front, std::optional< StencilAttachmentDescriptor > back)
 
MTLTextureDescriptor * impeller::ToMTLTextureDescriptor (const TextureDescriptor &desc)