1 /* 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * All rights reserved. 4 * 5 * This source code is licensed under the BSD-style license found in the 6 * LICENSE file in the root directory of this source tree. 7 */ 8 9 #pragma once 10 11 #include <executorch/backends/vulkan/runtime/vk_api/vk_api.h> 12 13 namespace vkcompute { 14 namespace vkapi { 15 create_extent3d(const utils::uvec3 & extents)16inline VkExtent3D create_extent3d(const utils::uvec3& extents) { 17 return VkExtent3D{extents[0u], extents[1u], extents[2u]}; 18 } 19 20 } // namespace vkapi 21 } // namespace vkcompute 22