8 #ifndef skgpu_MutableTextureState_DEFINED
9 #define skgpu_MutableTextureState_DEFINED
15 #include "include/private/gpu/vk/SkiaVulkan.h"
16 #include "include/private/gpu/vk/VulkanTypesPriv.h"
43 : fVkState(layout, queueFamilyIndex)
49 : fBackend(that.fBackend), fIsValid(that.fIsValid) {
57 fVkState = that.fVkState;
77 VkImageLayout getVkImageLayout()
const {
79 return VK_IMAGE_LAYOUT_UNDEFINED;
81 return fVkState.getImageLayout();
86 uint32_t getQueueFamilyIndex()
const {
88 return VK_QUEUE_FAMILY_IGNORED;
90 return fVkState.getQueueFamilyIndex();
100 friend class MutableTextureStateRef;
101 friend class ::GrVkGpu;
104 void setVulkanState(VkImageLayout layout, uint32_t queueFamilyIndex) {
106 fVkState.setImageLayout(layout);
107 fVkState.setQueueFamilyIndex(queueFamilyIndex);
116 VulkanMutableTextureState fVkState;
121 bool fIsValid =
false;
Since Skia and clients can both modify gpu textures and their connected state, Skia needs a way for c...
Definition: MutableTextureState.h:37
MutableTextureState & operator=(const MutableTextureState &that)
Definition: MutableTextureState.h:66
bool isValid() const
Definition: MutableTextureState.h:97
MutableTextureState(const MutableTextureState &that)
Definition: MutableTextureState.h:48
char fPlaceholder
Definition: MutableTextureState.h:114
MutableTextureState()
Definition: MutableTextureState.h:39
BackendApi backend() const
Definition: MutableTextureState.h:94
This file includes numerous public types that are used by all of our gpu backends.
Definition: SkCanvas.h:73
BackendApi
Possible 3D APIs that may be used by Graphite.
Definition: GpuTypes.h:22