1 /*
2 * Copyright 2022 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 #include "src/gpu/graphite/vk/VulkanGraphiteTypesPriv.h"
9
10 namespace skgpu::graphite {
11
VulkanTextureSpecToTextureInfo(const VulkanTextureSpec & vkSpec,uint32_t sampleCount,Mipmapped mipmapped)12 VulkanTextureInfo VulkanTextureSpecToTextureInfo(const VulkanTextureSpec& vkSpec,
13 uint32_t sampleCount,
14 Mipmapped mipmapped) {
15 return VulkanTextureInfo(sampleCount,
16 mipmapped,
17 vkSpec.fFlags,
18 vkSpec.fFormat,
19 vkSpec.fImageTiling,
20 vkSpec.fImageUsageFlags,
21 vkSpec.fSharingMode,
22 vkSpec.fAspectMask,
23 vkSpec.fYcbcrConversionInfo);
24 }
25
26 } // namespace skgpu::graphite
27
28