Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GrMtlBackendSurface.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7#ifndef GrMtlBackendSurface_DEFINED
8#define GrMtlBackendSurface_DEFINED
9
12
13#include <string_view>
14
15class GrBackendFormat;
18
19namespace GrBackendFormats {
21
23
24} // namespace GrBackendFormats
25
26namespace GrBackendTextures {
28 int height,
30 const GrMtlTextureInfo& mtlInfo,
31 std::string_view label = {});
32
33SK_API bool GetMtlTextureInfo(const GrBackendTexture&, GrMtlTextureInfo*);
34
35} // namespace GrBackendTextures
36
37namespace GrBackendRenderTargets {
38SK_API GrBackendRenderTarget MakeMtl(int width, int height, const GrMtlTextureInfo& mtlInfo);
39
40SK_API bool GetMtlTextureInfo(const GrBackendRenderTarget&, GrMtlTextureInfo*);
41
42} // namespace GrBackendRenderTargets
43
44#endif
unsigned int GrMTLPixelFormat
Definition GrMtlTypes.h:17
#define SK_API
Definition SkAPI.h:35
uint32_t uint32_t * format
SK_API GrBackendFormat MakeMtl(GrMTLPixelFormat format)
SK_API GrMTLPixelFormat AsMtlFormat(const GrBackendFormat &)
SK_API bool GetMtlTextureInfo(const GrBackendRenderTarget &, GrMtlTextureInfo *)
SK_API GrBackendRenderTarget MakeMtl(int width, int height, const GrMtlTextureInfo &mtlInfo)
SK_API GrBackendTexture MakeMtl(int width, int height, skgpu::Mipmapped, const GrMtlTextureInfo &mtlInfo, std::string_view label={})
SK_API bool GetMtlTextureInfo(const GrBackendTexture &, GrMtlTextureInfo *)
Mipmapped
Definition GpuTypes.h:53
int32_t height
int32_t width