• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2023 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 
8 #ifndef skgpu_VulkanMutableTextureState_DEFINED
9 #define skgpu_VulkanMutableTextureState_DEFINED
10 
11 #include "include/gpu/MutableTextureState.h"
12 #include "include/private/base/SkAPI.h"
13 #include "include/private/gpu/vk/SkiaVulkan.h"
14 
15 #include <cstdint>
16 
17 namespace skgpu::MutableTextureStates {
18 SK_API MutableTextureState MakeVulkan(VkImageLayout layout, uint32_t queueFamilyIndex);
19 
20 SK_API VkImageLayout GetVkImageLayout(const MutableTextureState& state);
21 SK_API VkImageLayout GetVkImageLayout(const MutableTextureState* state);
22 SK_API uint32_t GetVkQueueFamilyIndex(const MutableTextureState& state);
23 SK_API uint32_t GetVkQueueFamilyIndex(const MutableTextureState* state);
24 }
25 
26 #endif
27