chromium/gpu/ipc/common/vulkan_types_mojom_traits.h

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file is auto-generated from
// gpu/ipc/common/generate_vulkan_types.py
// It's formatted by clang-format using chromium coding style:
//    clang-format -i -style=chromium filename
// DO NOT EDIT!

#ifndef GPU_IPC_COMMON_VULKAN_TYPES_MOJOM_TRAITS_H_
#define GPU_IPC_COMMON_VULKAN_TYPES_MOJOM_TRAITS_H_

#include <string_view>

#include "base/containers/span.h"
#include "gpu/ipc/common/vulkan_types.h"
#include "gpu/ipc/common/vulkan_types.mojom-shared.h"

namespace mojo {

template <>
struct StructTraits<gpu::mojom::VkExtensionPropertiesDataView,
                    VkExtensionProperties> {};

template <>
struct StructTraits<gpu::mojom::VkLayerPropertiesDataView, VkLayerProperties> {};

template <>
struct StructTraits<gpu::mojom::VkPhysicalDevicePropertiesDataView,
                    VkPhysicalDeviceProperties> {};

template <>
struct EnumTraits<gpu::mojom::VkPhysicalDeviceType, VkPhysicalDeviceType> {};
template <>
struct StructTraits<gpu::mojom::VkPhysicalDeviceLimitsDataView,
                    VkPhysicalDeviceLimits> {};

template <>
struct StructTraits<gpu::mojom::VkPhysicalDeviceSparsePropertiesDataView,
                    VkPhysicalDeviceSparseProperties> {};

template <>
struct StructTraits<gpu::mojom::VkPhysicalDeviceFeaturesDataView,
                    VkPhysicalDeviceFeatures> {};

template <>
struct StructTraits<gpu::mojom::VkQueueFamilyPropertiesDataView,
                    VkQueueFamilyProperties> {};

template <>
struct StructTraits<gpu::mojom::VkExtent3DDataView, VkExtent3D> {};

}  // namespace mojo

#endif  // GPU_IPC_COMMON_VULKAN_TYPES_MOJOM_TRAITS_H_