blob: 2ad005820865bc609cd3c1cdd5fda9c47797f19c [file] [log] [blame]
/*
* Copyright 2022 Google LLC.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/private/gpu/graphite/VulkanGraphiteTypesPriv.h"
namespace skgpu::graphite {
VulkanTextureInfo VulkanTextureSpecToTextureInfo(const VulkanTextureSpec& vkSpec,
uint32_t sampleCount,
uint32_t levelCount) {
return VulkanTextureInfo(sampleCount,
levelCount,
vkSpec.fFlags,
vkSpec.fFormat,
vkSpec.fImageTiling,
vkSpec.fImageUsageFlags,
vkSpec.fSharingMode,
vkSpec.fCurrentQueueFamily,
vkSpec.fImageLayout,
vkSpec.fAspectMask);
}
} // namespace skgpu::graphite