blob: 7a388c57d03d8e7fddef76e841ca1b0eb37bbd86 [file] [log] [blame]
/*
* Copyright 2023 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef skgpu_VulkanMutableTextureState_DEFINED
#define skgpu_VulkanMutableTextureState_DEFINED
#include "include/gpu/MutableTextureState.h"
#include "include/private/base/SkAPI.h"
#include "include/private/gpu/vk/SkiaVulkan.h"
#include <cstdint>
namespace skgpu::MutableTextureStates {
SK_API MutableTextureState MakeVulkan(VkImageLayout layout, uint32_t queueFamilyIndex);
SK_API VkImageLayout GetVkImageLayout(const MutableTextureState& state);
SK_API VkImageLayout GetVkImageLayout(const MutableTextureState* state);
SK_API uint32_t GetVkQueueFamilyIndex(const MutableTextureState& state);
SK_API uint32_t GetVkQueueFamilyIndex(const MutableTextureState* state);
}
#endif