Flutter Engine
The Flutter Engine
third_party
skia
include
gpu
ganesh
mtl
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
10
#include "
include/gpu/ganesh/mtl/GrMtlTypes.h
"
11
#include "
include/private/base/SkAPI.h
"
12
13
#include <string_view>
14
15
class
GrBackendFormat
;
16
class
GrBackendTexture
;
17
class
GrBackendRenderTarget
;
18
19
namespace
GrBackendFormats
{
20
SK_API
GrBackendFormat
MakeMtl
(
GrMTLPixelFormat
format
);
21
22
SK_API
GrMTLPixelFormat
AsMtlFormat
(
const
GrBackendFormat
&);
23
24
}
// namespace GrBackendFormats
25
26
namespace
GrBackendTextures
{
27
SK_API
GrBackendTexture
MakeMtl
(
int
width
,
28
int
height
,
29
skgpu::Mipmapped
,
30
const
GrMtlTextureInfo& mtlInfo,
31
std::string_view label = {});
32
33
SK_API
bool
GetMtlTextureInfo
(
const
GrBackendTexture
&, GrMtlTextureInfo*);
34
35
}
// namespace GrBackendTextures
36
37
namespace
GrBackendRenderTargets
{
38
SK_API
GrBackendRenderTarget
MakeMtl
(
int
width
,
int
height
,
const
GrMtlTextureInfo& mtlInfo);
39
40
SK_API
bool
GetMtlTextureInfo
(
const
GrBackendRenderTarget
&, GrMtlTextureInfo*);
41
42
}
// namespace GrBackendRenderTargets
43
44
#endif
GrMtlTypes.h
GrMTLPixelFormat
unsigned int GrMTLPixelFormat
Definition:
GrMtlTypes.h:17
SkAPI.h
SK_API
#define SK_API
Definition:
SkAPI.h:35
GrBackendFormat
Definition:
GrBackendSurface.h:44
GrBackendRenderTarget
Definition:
GrBackendSurface.h:283
GrBackendTexture
Definition:
GrBackendSurface.h:149
format
uint32_t uint32_t * format
Definition:
fl_texture_registrar_test.cc:41
GrBackendFormats
Definition:
GrGLBackendSurface.h:22
GrBackendFormats::MakeMtl
SK_API GrBackendFormat MakeMtl(GrMTLPixelFormat format)
Definition:
GrMtlBackendSurface.mm:75
GrBackendFormats::AsMtlFormat
SK_API GrMTLPixelFormat AsMtlFormat(const GrBackendFormat &)
Definition:
GrMtlBackendSurface.mm:80
GrBackendRenderTargets
Definition:
GrGLBackendSurface.h:46
GrBackendRenderTargets::GetMtlTextureInfo
SK_API bool GetMtlTextureInfo(const GrBackendRenderTarget &, GrMtlTextureInfo *)
Definition:
GrMtlBackendSurface.mm:213
GrBackendRenderTargets::MakeMtl
SK_API GrBackendRenderTarget MakeMtl(int width, int height, const GrMtlTextureInfo &mtlInfo)
Definition:
GrMtlBackendSurface.mm:202
GrBackendTextures
Definition:
GrGLBackendSurface.h:29
GrBackendTextures::MakeMtl
SK_API GrBackendTexture MakeMtl(int width, int height, skgpu::Mipmapped, const GrMtlTextureInfo &mtlInfo, std::string_view label={})
Definition:
GrMtlBackendSurface.mm:136
GrBackendTextures::GetMtlTextureInfo
SK_API bool GetMtlTextureInfo(const GrBackendTexture &, GrMtlTextureInfo *)
Definition:
GrMtlBackendSurface.mm:150
skgpu::Mipmapped
Mipmapped
Definition:
GpuTypes.h:53
height
int32_t height
Definition:
serialization_callbacks.cc:1
width
int32_t width
Definition:
serialization_callbacks.cc:0
Generated on Sun Jun 23 2024 21:56:02 for Flutter Engine by
1.9.4