chromium/out/Default/gen/gpu/ipc/common/vulkan_types.mojom-blink.cc

// gpu/ipc/common/vulkan_types.mojom-blink.cc is auto generated by mojom_bindings_generator.py, do not edit

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

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "gpu/ipc/common/vulkan_types.mojom-blink.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "gpu/ipc/common/vulkan_types.mojom-params-data.h"
#include "gpu/ipc/common/vulkan_types.mojom-shared-message-ids.h"

#include "gpu/ipc/common/vulkan_types.mojom-blink-import-headers.h"
#include "gpu/ipc/common/vulkan_types.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace gpu::mojom::blink {
VkExtensionProperties::VkExtensionProperties()
    :{}

VkExtensionProperties::VkExtensionProperties(
    const WTF::String& extensionName_in,
    uint32_t specVersion_in)
    :{}

VkExtensionProperties::~VkExtensionProperties() = default;
size_t VkExtensionProperties::Hash(size_t seed) const {}

void VkExtensionProperties::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool VkExtensionProperties::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
VkLayerProperties::VkLayerProperties()
    :{}

VkLayerProperties::VkLayerProperties(
    const WTF::String& layerName_in,
    uint32_t specVersion_in,
    uint32_t implementationVersion_in,
    const WTF::String& description_in)
    :{}

VkLayerProperties::~VkLayerProperties() = default;
size_t VkLayerProperties::Hash(size_t seed) const {}

void VkLayerProperties::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool VkLayerProperties::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
VkPhysicalDeviceLimits::VkPhysicalDeviceLimits()
    :{}

VkPhysicalDeviceLimits::VkPhysicalDeviceLimits(
    uint32_t maxImageDimension1D_in,
    uint32_t maxImageDimension2D_in,
    uint32_t maxImageDimension3D_in,
    uint32_t maxImageDimensionCube_in,
    uint32_t maxImageArrayLayers_in,
    uint32_t maxTexelBufferElements_in,
    uint32_t maxUniformBufferRange_in,
    uint32_t maxStorageBufferRange_in,
    uint32_t maxPushConstantsSize_in,
    uint32_t maxMemoryAllocationCount_in,
    uint32_t maxSamplerAllocationCount_in,
    uint64_t bufferImageGranularity_in,
    uint64_t sparseAddressSpaceSize_in,
    uint32_t maxBoundDescriptorSets_in,
    uint32_t maxPerStageDescriptorSamplers_in,
    uint32_t maxPerStageDescriptorUniformBuffers_in,
    uint32_t maxPerStageDescriptorStorageBuffers_in,
    uint32_t maxPerStageDescriptorSampledImages_in,
    uint32_t maxPerStageDescriptorStorageImages_in,
    uint32_t maxPerStageDescriptorInputAttachments_in,
    uint32_t maxPerStageResources_in,
    uint32_t maxDescriptorSetSamplers_in,
    uint32_t maxDescriptorSetUniformBuffers_in,
    uint32_t maxDescriptorSetUniformBuffersDynamic_in,
    uint32_t maxDescriptorSetStorageBuffers_in,
    uint32_t maxDescriptorSetStorageBuffersDynamic_in,
    uint32_t maxDescriptorSetSampledImages_in,
    uint32_t maxDescriptorSetStorageImages_in,
    uint32_t maxDescriptorSetInputAttachments_in,
    uint32_t maxVertexInputAttributes_in,
    uint32_t maxVertexInputBindings_in,
    uint32_t maxVertexInputAttributeOffset_in,
    uint32_t maxVertexInputBindingStride_in,
    uint32_t maxVertexOutputComponents_in,
    uint32_t maxTessellationGenerationLevel_in,
    uint32_t maxTessellationPatchSize_in,
    uint32_t maxTessellationControlPerVertexInputComponents_in,
    uint32_t maxTessellationControlPerVertexOutputComponents_in,
    uint32_t maxTessellationControlPerPatchOutputComponents_in,
    uint32_t maxTessellationControlTotalOutputComponents_in,
    uint32_t maxTessellationEvaluationInputComponents_in,
    uint32_t maxTessellationEvaluationOutputComponents_in,
    uint32_t maxGeometryShaderInvocations_in,
    uint32_t maxGeometryInputComponents_in,
    uint32_t maxGeometryOutputComponents_in,
    uint32_t maxGeometryOutputVertices_in,
    uint32_t maxGeometryTotalOutputComponents_in,
    uint32_t maxFragmentInputComponents_in,
    uint32_t maxFragmentOutputAttachments_in,
    uint32_t maxFragmentDualSrcAttachments_in,
    uint32_t maxFragmentCombinedOutputResources_in,
    uint32_t maxComputeSharedMemorySize_in,
    WTF::Vector<uint32_t> maxComputeWorkGroupCount_in,
    uint32_t maxComputeWorkGroupInvocations_in,
    WTF::Vector<uint32_t> maxComputeWorkGroupSize_in,
    uint32_t subPixelPrecisionBits_in,
    uint32_t subTexelPrecisionBits_in,
    uint32_t mipmapPrecisionBits_in,
    uint32_t maxDrawIndexedIndexValue_in,
    uint32_t maxDrawIndirectCount_in,
    float maxSamplerLodBias_in,
    float maxSamplerAnisotropy_in,
    uint32_t maxViewports_in,
    WTF::Vector<uint32_t> maxViewportDimensions_in,
    WTF::Vector<float> viewportBoundsRange_in,
    uint32_t viewportSubPixelBits_in,
    uint64_t minMemoryMapAlignment_in,
    uint64_t minTexelBufferOffsetAlignment_in,
    uint64_t minUniformBufferOffsetAlignment_in,
    uint64_t minStorageBufferOffsetAlignment_in,
    int32_t minTexelOffset_in,
    uint32_t maxTexelOffset_in,
    int32_t minTexelGatherOffset_in,
    uint32_t maxTexelGatherOffset_in,
    float minInterpolationOffset_in,
    float maxInterpolationOffset_in,
    uint32_t subPixelInterpolationOffsetBits_in,
    uint32_t maxFramebufferWidth_in,
    uint32_t maxFramebufferHeight_in,
    uint32_t maxFramebufferLayers_in,
    uint32_t framebufferColorSampleCounts_in,
    uint32_t framebufferDepthSampleCounts_in,
    uint32_t framebufferStencilSampleCounts_in,
    uint32_t framebufferNoAttachmentsSampleCounts_in,
    uint32_t maxColorAttachments_in,
    uint32_t sampledImageColorSampleCounts_in,
    uint32_t sampledImageIntegerSampleCounts_in,
    uint32_t sampledImageDepthSampleCounts_in,
    uint32_t sampledImageStencilSampleCounts_in,
    uint32_t storageImageSampleCounts_in,
    uint32_t maxSampleMaskWords_in,
    bool timestampComputeAndGraphics_in,
    float timestampPeriod_in,
    uint32_t maxClipDistances_in,
    uint32_t maxCullDistances_in,
    uint32_t maxCombinedClipAndCullDistances_in,
    uint32_t discreteQueuePriorities_in,
    WTF::Vector<float> pointSizeRange_in,
    WTF::Vector<float> lineWidthRange_in,
    float pointSizeGranularity_in,
    float lineWidthGranularity_in,
    bool strictLines_in,
    bool standardSampleLocations_in,
    uint64_t optimalBufferCopyOffsetAlignment_in,
    uint64_t optimalBufferCopyRowPitchAlignment_in,
    uint64_t nonCoherentAtomSize_in)
    :{}

VkPhysicalDeviceLimits::~VkPhysicalDeviceLimits() = default;

void VkPhysicalDeviceLimits::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool VkPhysicalDeviceLimits::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
VkPhysicalDeviceSparseProperties::VkPhysicalDeviceSparseProperties()
    :{}

VkPhysicalDeviceSparseProperties::VkPhysicalDeviceSparseProperties(
    bool residencyStandard2DBlockShape_in,
    bool residencyStandard2DMultisampleBlockShape_in,
    bool residencyStandard3DBlockShape_in,
    bool residencyAlignedMipSize_in,
    bool residencyNonResidentStrict_in)
    :{}

VkPhysicalDeviceSparseProperties::~VkPhysicalDeviceSparseProperties() = default;
size_t VkPhysicalDeviceSparseProperties::Hash(size_t seed) const {}

void VkPhysicalDeviceSparseProperties::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool VkPhysicalDeviceSparseProperties::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
VkPhysicalDeviceProperties::VkPhysicalDeviceProperties()
    :{}

VkPhysicalDeviceProperties::VkPhysicalDeviceProperties(
    uint32_t apiVersion_in,
    uint32_t driverVersion_in,
    uint32_t vendorID_in,
    uint32_t deviceID_in,
    VkPhysicalDeviceType deviceType_in,
    const WTF::String& deviceName_in,
    WTF::Vector<uint8_t> pipelineCacheUUID_in,
    VkPhysicalDeviceLimitsPtr limits_in,
    VkPhysicalDeviceSparsePropertiesPtr sparseProperties_in)
    :{}

VkPhysicalDeviceProperties::~VkPhysicalDeviceProperties() = default;

void VkPhysicalDeviceProperties::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool VkPhysicalDeviceProperties::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
VkPhysicalDeviceFeatures::VkPhysicalDeviceFeatures()
    :{}

VkPhysicalDeviceFeatures::VkPhysicalDeviceFeatures(
    bool robustBufferAccess_in,
    bool fullDrawIndexUint32_in,
    bool imageCubeArray_in,
    bool independentBlend_in,
    bool geometryShader_in,
    bool tessellationShader_in,
    bool sampleRateShading_in,
    bool dualSrcBlend_in,
    bool logicOp_in,
    bool multiDrawIndirect_in,
    bool drawIndirectFirstInstance_in,
    bool depthClamp_in,
    bool depthBiasClamp_in,
    bool fillModeNonSolid_in,
    bool depthBounds_in,
    bool wideLines_in,
    bool largePoints_in,
    bool alphaToOne_in,
    bool multiViewport_in,
    bool samplerAnisotropy_in,
    bool textureCompressionETC2_in,
    bool textureCompressionASTC_LDR_in,
    bool textureCompressionBC_in,
    bool occlusionQueryPrecise_in,
    bool pipelineStatisticsQuery_in,
    bool vertexPipelineStoresAndAtomics_in,
    bool fragmentStoresAndAtomics_in,
    bool shaderTessellationAndGeometryPointSize_in,
    bool shaderImageGatherExtended_in,
    bool shaderStorageImageExtendedFormats_in,
    bool shaderStorageImageMultisample_in,
    bool shaderStorageImageReadWithoutFormat_in,
    bool shaderStorageImageWriteWithoutFormat_in,
    bool shaderUniformBufferArrayDynamicIndexing_in,
    bool shaderSampledImageArrayDynamicIndexing_in,
    bool shaderStorageBufferArrayDynamicIndexing_in,
    bool shaderStorageImageArrayDynamicIndexing_in,
    bool shaderClipDistance_in,
    bool shaderCullDistance_in,
    bool shaderFloat64_in,
    bool shaderInt64_in,
    bool shaderInt16_in,
    bool shaderResourceResidency_in,
    bool shaderResourceMinLod_in,
    bool sparseBinding_in,
    bool sparseResidencyBuffer_in,
    bool sparseResidencyImage2D_in,
    bool sparseResidencyImage3D_in,
    bool sparseResidency2Samples_in,
    bool sparseResidency4Samples_in,
    bool sparseResidency8Samples_in,
    bool sparseResidency16Samples_in,
    bool sparseResidencyAliased_in,
    bool variableMultisampleRate_in,
    bool inheritedQueries_in)
    :{}

VkPhysicalDeviceFeatures::~VkPhysicalDeviceFeatures() = default;
size_t VkPhysicalDeviceFeatures::Hash(size_t seed) const {}

void VkPhysicalDeviceFeatures::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool VkPhysicalDeviceFeatures::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
VkExtent3D::VkExtent3D()
    :{}

VkExtent3D::VkExtent3D(
    uint32_t width_in,
    uint32_t height_in,
    uint32_t depth_in)
    :{}

VkExtent3D::~VkExtent3D() = default;
size_t VkExtent3D::Hash(size_t seed) const {}

void VkExtent3D::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool VkExtent3D::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
VkQueueFamilyProperties::VkQueueFamilyProperties()
    :{}

VkQueueFamilyProperties::VkQueueFamilyProperties(
    uint32_t queueFlags_in,
    uint32_t queueCount_in,
    uint32_t timestampValidBits_in,
    VkExtent3DPtr minImageTransferGranularity_in)
    :{}

VkQueueFamilyProperties::~VkQueueFamilyProperties() = default;
size_t VkQueueFamilyProperties::Hash(size_t seed) const {}

void VkQueueFamilyProperties::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool VkQueueFamilyProperties::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}


}  // gpu::mojom::blink


namespace mojo {


// static
bool StructTraits<::gpu::mojom::blink::VkExtensionProperties::DataView, ::gpu::mojom::blink::VkExtensionPropertiesPtr>::Read(
    ::gpu::mojom::blink::VkExtensionProperties::DataView input,
    ::gpu::mojom::blink::VkExtensionPropertiesPtr* output) {}


// static
bool StructTraits<::gpu::mojom::blink::VkLayerProperties::DataView, ::gpu::mojom::blink::VkLayerPropertiesPtr>::Read(
    ::gpu::mojom::blink::VkLayerProperties::DataView input,
    ::gpu::mojom::blink::VkLayerPropertiesPtr* output) {}


// static
bool StructTraits<::gpu::mojom::blink::VkPhysicalDeviceLimits::DataView, ::gpu::mojom::blink::VkPhysicalDeviceLimitsPtr>::Read(
    ::gpu::mojom::blink::VkPhysicalDeviceLimits::DataView input,
    ::gpu::mojom::blink::VkPhysicalDeviceLimitsPtr* output) {}


// static
bool StructTraits<::gpu::mojom::blink::VkPhysicalDeviceSparseProperties::DataView, ::gpu::mojom::blink::VkPhysicalDeviceSparsePropertiesPtr>::Read(
    ::gpu::mojom::blink::VkPhysicalDeviceSparseProperties::DataView input,
    ::gpu::mojom::blink::VkPhysicalDeviceSparsePropertiesPtr* output) {}


// static
bool StructTraits<::gpu::mojom::blink::VkPhysicalDeviceProperties::DataView, ::gpu::mojom::blink::VkPhysicalDevicePropertiesPtr>::Read(
    ::gpu::mojom::blink::VkPhysicalDeviceProperties::DataView input,
    ::gpu::mojom::blink::VkPhysicalDevicePropertiesPtr* output) {}


// static
bool StructTraits<::gpu::mojom::blink::VkPhysicalDeviceFeatures::DataView, ::gpu::mojom::blink::VkPhysicalDeviceFeaturesPtr>::Read(
    ::gpu::mojom::blink::VkPhysicalDeviceFeatures::DataView input,
    ::gpu::mojom::blink::VkPhysicalDeviceFeaturesPtr* output) {}


// static
bool StructTraits<::gpu::mojom::blink::VkExtent3D::DataView, ::gpu::mojom::blink::VkExtent3DPtr>::Read(
    ::gpu::mojom::blink::VkExtent3D::DataView input,
    ::gpu::mojom::blink::VkExtent3DPtr* output) {}


// static
bool StructTraits<::gpu::mojom::blink::VkQueueFamilyProperties::DataView, ::gpu::mojom::blink::VkQueueFamilyPropertiesPtr>::Read(
    ::gpu::mojom::blink::VkQueueFamilyProperties::DataView input,
    ::gpu::mojom::blink::VkQueueFamilyPropertiesPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace gpu::mojom::blink {




}  // gpu::mojom::blink


#if defined(__clang__)
#pragma clang diagnostic pop
#endif