Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
third_party
skia
src
gpu
ganesh
vk
GrVkTypesPriv.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2018 Google Inc.
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
8
#include "
src/gpu/ganesh/vk/GrVkTypesPriv.h
"
9
10
#include "
include/gpu/MutableTextureState.h
"
11
#include "
include/gpu/vk/VulkanMutableTextureState.h
"
12
#include "
src/gpu/ganesh/vk/GrVkImageLayout.h
"
13
14
GrVkImageInfo
GrVkImageInfoWithMutableState
(
const
GrVkImageInfo
&
info
,
15
const
skgpu::MutableTextureState
* mutableState) {
16
SkASSERT
(mutableState);
17
GrVkImageInfo
newInfo =
info
;
18
newInfo.
fImageLayout
=
skgpu::MutableTextureStates::GetVkImageLayout
(mutableState);
19
newInfo.
fCurrentQueueFamily
=
skgpu::MutableTextureStates::GetVkQueueFamilyIndex
(mutableState);
20
return
newInfo;
21
}
22
23
GrVkSurfaceInfo
GrVkImageSpecToSurfaceInfo
(
const
GrVkImageSpec
& vkSpec,
24
uint32_t sampleCount,
25
uint32_t levelCount,
26
skgpu::Protected
isProtected) {
27
GrVkSurfaceInfo
info
;
28
// Shared info
29
info
.fSampleCount = sampleCount;
30
info
.fLevelCount = levelCount;
31
info
.fProtected = isProtected;
32
33
// Vulkan info
34
info
.fImageTiling = vkSpec.
fImageTiling
;
35
info
.fFormat = vkSpec.
fFormat
;
36
info
.fImageUsageFlags = vkSpec.
fImageUsageFlags
;
37
info
.fYcbcrConversionInfo = vkSpec.
fYcbcrConversionInfo
;
38
info
.fSharingMode = vkSpec.
fSharingMode
;
39
40
return
info
;
41
}
info
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition:
DM.cpp:213
GrVkImageLayout.h
GrVkImageInfoWithMutableState
GrVkImageInfo GrVkImageInfoWithMutableState(const GrVkImageInfo &info, const skgpu::MutableTextureState *mutableState)
Definition:
GrVkTypesPriv.cpp:14
GrVkImageSpecToSurfaceInfo
GrVkSurfaceInfo GrVkImageSpecToSurfaceInfo(const GrVkImageSpec &vkSpec, uint32_t sampleCount, uint32_t levelCount, skgpu::Protected isProtected)
Definition:
GrVkTypesPriv.cpp:23
GrVkTypesPriv.h
MutableTextureState.h
SkASSERT
#define SkASSERT(cond)
Definition:
SkAssert.h:116
VulkanMutableTextureState.h
skgpu::MutableTextureState
Definition:
MutableTextureState.h:30
skgpu::MutableTextureStates::GetVkQueueFamilyIndex
SK_API uint32_t GetVkQueueFamilyIndex(const MutableTextureState &state)
Definition:
VulkanMutableTextureState.cpp:77
skgpu::MutableTextureStates::GetVkImageLayout
SK_API VkImageLayout GetVkImageLayout(const MutableTextureState &state)
Definition:
VulkanMutableTextureState.cpp:61
skgpu::Protected
Protected
Definition:
GpuTypes.h:61
GrVkImageInfo
Definition:
GrVkTypes.h:25
GrVkImageInfo::fCurrentQueueFamily
uint32_t fCurrentQueueFamily
Definition:
GrVkTypes.h:34
GrVkImageInfo::fImageLayout
VkImageLayout fImageLayout
Definition:
GrVkTypes.h:29
GrVkImageSpec
Definition:
GrVkTypesPriv.h:22
GrVkImageSpec::fImageUsageFlags
VkImageUsageFlags fImageUsageFlags
Definition:
GrVkTypesPriv.h:38
GrVkImageSpec::fFormat
VkFormat fFormat
Definition:
GrVkTypesPriv.h:37
GrVkImageSpec::fYcbcrConversionInfo
skgpu::VulkanYcbcrConversionInfo fYcbcrConversionInfo
Definition:
GrVkTypesPriv.h:39
GrVkImageSpec::fSharingMode
VkSharingMode fSharingMode
Definition:
GrVkTypesPriv.h:40
GrVkImageSpec::fImageTiling
VkImageTiling fImageTiling
Definition:
GrVkTypesPriv.h:36
GrVkSurfaceInfo
Definition:
GrVkTypes.h:95
Generated on Sun Jun 23 2024 21:56:25 for Flutter Engine by
1.9.4