#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "gpu/ipc/common/vulkan_types.mojom.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-import-headers.h"
#include "gpu/ipc/common/vulkan_types.mojom-test-utils.h"
namespace gpu::mojom {
VkExtensionProperties::VkExtensionProperties()
: … { … }
VkExtensionProperties::VkExtensionProperties(
const std::string& extensionName_in,
uint32_t specVersion_in)
: … { … }
VkExtensionProperties::~VkExtensionProperties() = default;
void VkExtensionProperties::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool VkExtensionProperties::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
VkLayerProperties::VkLayerProperties()
: … { … }
VkLayerProperties::VkLayerProperties(
const std::string& layerName_in,
uint32_t specVersion_in,
uint32_t implementationVersion_in,
const std::string& description_in)
: … { … }
VkLayerProperties::~VkLayerProperties() = default;
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,
std::vector<uint32_t> maxComputeWorkGroupCount_in,
uint32_t maxComputeWorkGroupInvocations_in,
std::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,
std::vector<uint32_t> maxViewportDimensions_in,
std::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,
std::vector<float> pointSizeRange_in,
std::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;
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 std::string& deviceName_in,
std::vector<uint8_t> pipelineCacheUUID_in,
const ::VkPhysicalDeviceLimits& limits_in,
const ::VkPhysicalDeviceSparseProperties& 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;
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;
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,
const ::VkExtent3D& minImageTransferGranularity_in)
: … { … }
VkQueueFamilyProperties::~VkQueueFamilyProperties() = default;
void VkQueueFamilyProperties::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool VkQueueFamilyProperties::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::gpu::mojom::VkExtensionProperties::DataView, ::gpu::mojom::VkExtensionPropertiesPtr>::Read(
::gpu::mojom::VkExtensionProperties::DataView input,
::gpu::mojom::VkExtensionPropertiesPtr* output) { … }
bool StructTraits<::gpu::mojom::VkLayerProperties::DataView, ::gpu::mojom::VkLayerPropertiesPtr>::Read(
::gpu::mojom::VkLayerProperties::DataView input,
::gpu::mojom::VkLayerPropertiesPtr* output) { … }
bool StructTraits<::gpu::mojom::VkPhysicalDeviceLimits::DataView, ::gpu::mojom::VkPhysicalDeviceLimitsPtr>::Read(
::gpu::mojom::VkPhysicalDeviceLimits::DataView input,
::gpu::mojom::VkPhysicalDeviceLimitsPtr* output) { … }
bool StructTraits<::gpu::mojom::VkPhysicalDeviceSparseProperties::DataView, ::gpu::mojom::VkPhysicalDeviceSparsePropertiesPtr>::Read(
::gpu::mojom::VkPhysicalDeviceSparseProperties::DataView input,
::gpu::mojom::VkPhysicalDeviceSparsePropertiesPtr* output) { … }
bool StructTraits<::gpu::mojom::VkPhysicalDeviceProperties::DataView, ::gpu::mojom::VkPhysicalDevicePropertiesPtr>::Read(
::gpu::mojom::VkPhysicalDeviceProperties::DataView input,
::gpu::mojom::VkPhysicalDevicePropertiesPtr* output) { … }
bool StructTraits<::gpu::mojom::VkPhysicalDeviceFeatures::DataView, ::gpu::mojom::VkPhysicalDeviceFeaturesPtr>::Read(
::gpu::mojom::VkPhysicalDeviceFeatures::DataView input,
::gpu::mojom::VkPhysicalDeviceFeaturesPtr* output) { … }
bool StructTraits<::gpu::mojom::VkExtent3D::DataView, ::gpu::mojom::VkExtent3DPtr>::Read(
::gpu::mojom::VkExtent3D::DataView input,
::gpu::mojom::VkExtent3DPtr* output) { … }
bool StructTraits<::gpu::mojom::VkQueueFamilyProperties::DataView, ::gpu::mojom::VkQueueFamilyPropertiesPtr>::Read(
::gpu::mojom::VkQueueFamilyProperties::DataView input,
::gpu::mojom::VkQueueFamilyPropertiesPtr* output) { … }
}
namespace gpu::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif