blob: 81295e7948ad63cd7115c2890f18faf7b33513c2 [file] [log] [blame]
// gpu/ipc/common/vulkan_types.mojom-lite.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
mojo.internal.exportModule('gpu.mojom');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
gpu.mojom.VkPhysicalDeviceTypeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
gpu.mojom.VkPhysicalDeviceType = {
OTHER: 0,
INTEGRATED_GPU: 1,
DISCRETE_GPU: 2,
VIRTUAL_GPU: 3,
CPU: 4,
INVALID_VALUE: -1,
MIN_VALUE: -1,
MAX_VALUE: 4,
};
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VkExtensionPropertiesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VkLayerPropertiesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VkPhysicalDeviceLimitsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VkPhysicalDeviceSparsePropertiesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VkPhysicalDevicePropertiesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VkPhysicalDeviceFeaturesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VkExtent3DSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
gpu.mojom.VkQueueFamilyPropertiesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
gpu.mojom.VkExtensionPropertiesSpec.$,
'VkExtensionProperties',
[
mojo.internal.StructField(
'extensionName', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'specVersion', 8,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
],
[[0, 24],]);
gpu.mojom.VkExtensionProperties_Deserialize =
mojo.internal.createStructDeserializer(gpu.mojom.VkExtensionPropertiesSpec.$);
/** @record */
gpu.mojom.VkExtensionProperties = class {
constructor() {
/** @export { !string } */
this.extensionName;
/** @export { !number } */
this.specVersion;
}
};
mojo.internal.Struct(
gpu.mojom.VkLayerPropertiesSpec.$,
'VkLayerProperties',
[
mojo.internal.StructField(
'layerName', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'specVersion', 8,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'implementationVersion', 12,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'description', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 32],]);
gpu.mojom.VkLayerProperties_Deserialize =
mojo.internal.createStructDeserializer(gpu.mojom.VkLayerPropertiesSpec.$);
/** @record */
gpu.mojom.VkLayerProperties = class {
constructor() {
/** @export { !string } */
this.layerName;
/** @export { !number } */
this.specVersion;
/** @export { !number } */
this.implementationVersion;
/** @export { !string } */
this.description;
}
};
mojo.internal.Struct(
gpu.mojom.VkPhysicalDeviceLimitsSpec.$,
'VkPhysicalDeviceLimits',
[
mojo.internal.StructField(
'maxImageDimension1D', 0,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxImageDimension2D', 4,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxImageDimension3D', 8,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxImageDimensionCube', 12,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxImageArrayLayers', 16,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTexelBufferElements', 20,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxUniformBufferRange', 24,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxStorageBufferRange', 28,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxPushConstantsSize', 32,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxMemoryAllocationCount', 36,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxSamplerAllocationCount', 40,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'bufferImageGranularity', 48,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */),
mojo.internal.StructField(
'sparseAddressSpaceSize', 56,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */),
mojo.internal.StructField(
'maxBoundDescriptorSets', 44,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxPerStageDescriptorSamplers', 64,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxPerStageDescriptorUniformBuffers', 68,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxPerStageDescriptorStorageBuffers', 72,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxPerStageDescriptorSampledImages', 76,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxPerStageDescriptorStorageImages', 80,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxPerStageDescriptorInputAttachments', 84,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxPerStageResources', 88,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDescriptorSetSamplers', 92,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDescriptorSetUniformBuffers', 96,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDescriptorSetUniformBuffersDynamic', 100,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDescriptorSetStorageBuffers', 104,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDescriptorSetStorageBuffersDynamic', 108,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDescriptorSetSampledImages', 112,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDescriptorSetStorageImages', 116,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDescriptorSetInputAttachments', 120,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxVertexInputAttributes', 124,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxVertexInputBindings', 128,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxVertexInputAttributeOffset', 132,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxVertexInputBindingStride', 136,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxVertexOutputComponents', 140,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTessellationGenerationLevel', 144,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTessellationPatchSize', 148,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTessellationControlPerVertexInputComponents', 152,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTessellationControlPerVertexOutputComponents', 156,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTessellationControlPerPatchOutputComponents', 160,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTessellationControlTotalOutputComponents', 164,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTessellationEvaluationInputComponents', 168,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTessellationEvaluationOutputComponents', 172,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxGeometryShaderInvocations', 176,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxGeometryInputComponents', 180,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxGeometryOutputComponents', 184,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxGeometryOutputVertices', 188,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxGeometryTotalOutputComponents', 192,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxFragmentInputComponents', 196,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxFragmentOutputAttachments', 200,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxFragmentDualSrcAttachments', 204,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxFragmentCombinedOutputResources', 208,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxComputeSharedMemorySize', 212,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxComputeWorkGroupCount', 216,
0,
mojo.internal.Array(mojo.internal.Uint32, false),
null,
false /* nullable */),
mojo.internal.StructField(
'maxComputeWorkGroupInvocations', 224,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxComputeWorkGroupSize', 232,
0,
mojo.internal.Array(mojo.internal.Uint32, false),
null,
false /* nullable */),
mojo.internal.StructField(
'subPixelPrecisionBits', 228,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'subTexelPrecisionBits', 240,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'mipmapPrecisionBits', 244,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDrawIndexedIndexValue', 248,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxDrawIndirectCount', 252,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxSamplerLodBias', 256,
0,
mojo.internal.Float,
0,
false /* nullable */),
mojo.internal.StructField(
'maxSamplerAnisotropy', 260,
0,
mojo.internal.Float,
0,
false /* nullable */),
mojo.internal.StructField(
'maxViewports', 264,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxViewportDimensions', 272,
0,
mojo.internal.Array(mojo.internal.Uint32, false),
null,
false /* nullable */),
mojo.internal.StructField(
'viewportBoundsRange', 280,
0,
mojo.internal.Array(mojo.internal.Float, false),
null,
false /* nullable */),
mojo.internal.StructField(
'viewportSubPixelBits', 268,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'minMemoryMapAlignment', 288,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */),
mojo.internal.StructField(
'minTexelBufferOffsetAlignment', 296,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */),
mojo.internal.StructField(
'minUniformBufferOffsetAlignment', 304,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */),
mojo.internal.StructField(
'minStorageBufferOffsetAlignment', 312,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */),
mojo.internal.StructField(
'minTexelOffset', 320,
0,
mojo.internal.Int32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTexelOffset', 324,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'minTexelGatherOffset', 328,
0,
mojo.internal.Int32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxTexelGatherOffset', 332,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'minInterpolationOffset', 336,
0,
mojo.internal.Float,
0,
false /* nullable */),
mojo.internal.StructField(
'maxInterpolationOffset', 340,
0,
mojo.internal.Float,
0,
false /* nullable */),
mojo.internal.StructField(
'subPixelInterpolationOffsetBits', 344,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxFramebufferWidth', 348,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxFramebufferHeight', 352,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxFramebufferLayers', 356,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'framebufferColorSampleCounts', 360,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'framebufferDepthSampleCounts', 364,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'framebufferStencilSampleCounts', 368,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'framebufferNoAttachmentsSampleCounts', 372,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxColorAttachments', 376,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'sampledImageColorSampleCounts', 380,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'sampledImageIntegerSampleCounts', 384,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'sampledImageDepthSampleCounts', 388,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'sampledImageStencilSampleCounts', 392,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'storageImageSampleCounts', 396,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxSampleMaskWords', 400,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'timestampComputeAndGraphics', 404,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'timestampPeriod', 408,
0,
mojo.internal.Float,
0,
false /* nullable */),
mojo.internal.StructField(
'maxClipDistances', 412,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxCullDistances', 416,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'maxCombinedClipAndCullDistances', 420,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'discreteQueuePriorities', 424,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'pointSizeRange', 432,
0,
mojo.internal.Array(mojo.internal.Float, false),
null,
false /* nullable */),
mojo.internal.StructField(
'lineWidthRange', 440,
0,
mojo.internal.Array(mojo.internal.Float, false),
null,
false /* nullable */),
mojo.internal.StructField(
'pointSizeGranularity', 428,
0,
mojo.internal.Float,
0,
false /* nullable */),
mojo.internal.StructField(
'lineWidthGranularity', 448,
0,
mojo.internal.Float,
0,
false /* nullable */),
mojo.internal.StructField(
'strictLines', 404,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'standardSampleLocations', 404,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'optimalBufferCopyOffsetAlignment', 456,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */),
mojo.internal.StructField(
'optimalBufferCopyRowPitchAlignment', 464,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */),
mojo.internal.StructField(
'nonCoherentAtomSize', 472,
0,
mojo.internal.Uint64,
BigInt(0),
false /* nullable */),
],
[[0, 488],]);
gpu.mojom.VkPhysicalDeviceLimits_Deserialize =
mojo.internal.createStructDeserializer(gpu.mojom.VkPhysicalDeviceLimitsSpec.$);
/** @record */
gpu.mojom.VkPhysicalDeviceLimits = class {
constructor() {
/** @export { !number } */
this.maxImageDimension1D;
/** @export { !number } */
this.maxImageDimension2D;
/** @export { !number } */
this.maxImageDimension3D;
/** @export { !number } */
this.maxImageDimensionCube;
/** @export { !number } */
this.maxImageArrayLayers;
/** @export { !number } */
this.maxTexelBufferElements;
/** @export { !number } */
this.maxUniformBufferRange;
/** @export { !number } */
this.maxStorageBufferRange;
/** @export { !number } */
this.maxPushConstantsSize;
/** @export { !number } */
this.maxMemoryAllocationCount;
/** @export { !number } */
this.maxSamplerAllocationCount;
/** @export { !number } */
this.maxBoundDescriptorSets;
/** @export { !bigint } */
this.bufferImageGranularity;
/** @export { !bigint } */
this.sparseAddressSpaceSize;
/** @export { !number } */
this.maxPerStageDescriptorSamplers;
/** @export { !number } */
this.maxPerStageDescriptorUniformBuffers;
/** @export { !number } */
this.maxPerStageDescriptorStorageBuffers;
/** @export { !number } */
this.maxPerStageDescriptorSampledImages;
/** @export { !number } */
this.maxPerStageDescriptorStorageImages;
/** @export { !number } */
this.maxPerStageDescriptorInputAttachments;
/** @export { !number } */
this.maxPerStageResources;
/** @export { !number } */
this.maxDescriptorSetSamplers;
/** @export { !number } */
this.maxDescriptorSetUniformBuffers;
/** @export { !number } */
this.maxDescriptorSetUniformBuffersDynamic;
/** @export { !number } */
this.maxDescriptorSetStorageBuffers;
/** @export { !number } */
this.maxDescriptorSetStorageBuffersDynamic;
/** @export { !number } */
this.maxDescriptorSetSampledImages;
/** @export { !number } */
this.maxDescriptorSetStorageImages;
/** @export { !number } */
this.maxDescriptorSetInputAttachments;
/** @export { !number } */
this.maxVertexInputAttributes;
/** @export { !number } */
this.maxVertexInputBindings;
/** @export { !number } */
this.maxVertexInputAttributeOffset;
/** @export { !number } */
this.maxVertexInputBindingStride;
/** @export { !number } */
this.maxVertexOutputComponents;
/** @export { !number } */
this.maxTessellationGenerationLevel;
/** @export { !number } */
this.maxTessellationPatchSize;
/** @export { !number } */
this.maxTessellationControlPerVertexInputComponents;
/** @export { !number } */
this.maxTessellationControlPerVertexOutputComponents;
/** @export { !number } */
this.maxTessellationControlPerPatchOutputComponents;
/** @export { !number } */
this.maxTessellationControlTotalOutputComponents;
/** @export { !number } */
this.maxTessellationEvaluationInputComponents;
/** @export { !number } */
this.maxTessellationEvaluationOutputComponents;
/** @export { !number } */
this.maxGeometryShaderInvocations;
/** @export { !number } */
this.maxGeometryInputComponents;
/** @export { !number } */
this.maxGeometryOutputComponents;
/** @export { !number } */
this.maxGeometryOutputVertices;
/** @export { !number } */
this.maxGeometryTotalOutputComponents;
/** @export { !number } */
this.maxFragmentInputComponents;
/** @export { !number } */
this.maxFragmentOutputAttachments;
/** @export { !number } */
this.maxFragmentDualSrcAttachments;
/** @export { !number } */
this.maxFragmentCombinedOutputResources;
/** @export { !number } */
this.maxComputeSharedMemorySize;
/** @export { !Array<!number> } */
this.maxComputeWorkGroupCount;
/** @export { !number } */
this.maxComputeWorkGroupInvocations;
/** @export { !number } */
this.subPixelPrecisionBits;
/** @export { !Array<!number> } */
this.maxComputeWorkGroupSize;
/** @export { !number } */
this.subTexelPrecisionBits;
/** @export { !number } */
this.mipmapPrecisionBits;
/** @export { !number } */
this.maxDrawIndexedIndexValue;
/** @export { !number } */
this.maxDrawIndirectCount;
/** @export { !number } */
this.maxSamplerLodBias;
/** @export { !number } */
this.maxSamplerAnisotropy;
/** @export { !number } */
this.maxViewports;
/** @export { !number } */
this.viewportSubPixelBits;
/** @export { !Array<!number> } */
this.maxViewportDimensions;
/** @export { !Array<!number> } */
this.viewportBoundsRange;
/** @export { !bigint } */
this.minMemoryMapAlignment;
/** @export { !bigint } */
this.minTexelBufferOffsetAlignment;
/** @export { !bigint } */
this.minUniformBufferOffsetAlignment;
/** @export { !bigint } */
this.minStorageBufferOffsetAlignment;
/** @export { !number } */
this.minTexelOffset;
/** @export { !number } */
this.maxTexelOffset;
/** @export { !number } */
this.minTexelGatherOffset;
/** @export { !number } */
this.maxTexelGatherOffset;
/** @export { !number } */
this.minInterpolationOffset;
/** @export { !number } */
this.maxInterpolationOffset;
/** @export { !number } */
this.subPixelInterpolationOffsetBits;
/** @export { !number } */
this.maxFramebufferWidth;
/** @export { !number } */
this.maxFramebufferHeight;
/** @export { !number } */
this.maxFramebufferLayers;
/** @export { !number } */
this.framebufferColorSampleCounts;
/** @export { !number } */
this.framebufferDepthSampleCounts;
/** @export { !number } */
this.framebufferStencilSampleCounts;
/** @export { !number } */
this.framebufferNoAttachmentsSampleCounts;
/** @export { !number } */
this.maxColorAttachments;
/** @export { !number } */
this.sampledImageColorSampleCounts;
/** @export { !number } */
this.sampledImageIntegerSampleCounts;
/** @export { !number } */
this.sampledImageDepthSampleCounts;
/** @export { !number } */
this.sampledImageStencilSampleCounts;
/** @export { !number } */
this.storageImageSampleCounts;
/** @export { !number } */
this.maxSampleMaskWords;
/** @export { !boolean } */
this.timestampComputeAndGraphics;
/** @export { !boolean } */
this.strictLines;
/** @export { !boolean } */
this.standardSampleLocations;
/** @export { !number } */
this.timestampPeriod;
/** @export { !number } */
this.maxClipDistances;
/** @export { !number } */
this.maxCullDistances;
/** @export { !number } */
this.maxCombinedClipAndCullDistances;
/** @export { !number } */
this.discreteQueuePriorities;
/** @export { !number } */
this.pointSizeGranularity;
/** @export { !Array<!number> } */
this.pointSizeRange;
/** @export { !Array<!number> } */
this.lineWidthRange;
/** @export { !number } */
this.lineWidthGranularity;
/** @export { !bigint } */
this.optimalBufferCopyOffsetAlignment;
/** @export { !bigint } */
this.optimalBufferCopyRowPitchAlignment;
/** @export { !bigint } */
this.nonCoherentAtomSize;
}
};
mojo.internal.Struct(
gpu.mojom.VkPhysicalDeviceSparsePropertiesSpec.$,
'VkPhysicalDeviceSparseProperties',
[
mojo.internal.StructField(
'residencyStandard2DBlockShape', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'residencyStandard2DMultisampleBlockShape', 0,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'residencyStandard3DBlockShape', 0,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'residencyAlignedMipSize', 0,
3,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'residencyNonResidentStrict', 0,
4,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
gpu.mojom.VkPhysicalDeviceSparseProperties_Deserialize =
mojo.internal.createStructDeserializer(gpu.mojom.VkPhysicalDeviceSparsePropertiesSpec.$);
/** @record */
gpu.mojom.VkPhysicalDeviceSparseProperties = class {
constructor() {
/** @export { !boolean } */
this.residencyStandard2DBlockShape;
/** @export { !boolean } */
this.residencyStandard2DMultisampleBlockShape;
/** @export { !boolean } */
this.residencyStandard3DBlockShape;
/** @export { !boolean } */
this.residencyAlignedMipSize;
/** @export { !boolean } */
this.residencyNonResidentStrict;
}
};
mojo.internal.Struct(
gpu.mojom.VkPhysicalDevicePropertiesSpec.$,
'VkPhysicalDeviceProperties',
[
mojo.internal.StructField(
'apiVersion', 0,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'driverVersion', 4,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'vendorID', 8,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'deviceID', 12,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'deviceType', 16,
0,
gpu.mojom.VkPhysicalDeviceTypeSpec.$,
0,
false /* nullable */),
mojo.internal.StructField(
'deviceName', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'pipelineCacheUUID', 32,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'limits', 40,
0,
gpu.mojom.VkPhysicalDeviceLimitsSpec.$,
null,
false /* nullable */),
mojo.internal.StructField(
'sparseProperties', 48,
0,
gpu.mojom.VkPhysicalDeviceSparsePropertiesSpec.$,
null,
false /* nullable */),
],
[[0, 64],]);
gpu.mojom.VkPhysicalDeviceProperties_Deserialize =
mojo.internal.createStructDeserializer(gpu.mojom.VkPhysicalDevicePropertiesSpec.$);
/** @record */
gpu.mojom.VkPhysicalDeviceProperties = class {
constructor() {
/** @export { !number } */
this.apiVersion;
/** @export { !number } */
this.driverVersion;
/** @export { !number } */
this.vendorID;
/** @export { !number } */
this.deviceID;
/** @export { !gpu.mojom.VkPhysicalDeviceType } */
this.deviceType;
/** @export { !string } */
this.deviceName;
/** @export { !Array<!number> } */
this.pipelineCacheUUID;
/** @export { !gpu.mojom.VkPhysicalDeviceLimits } */
this.limits;
/** @export { !gpu.mojom.VkPhysicalDeviceSparseProperties } */
this.sparseProperties;
}
};
mojo.internal.Struct(
gpu.mojom.VkPhysicalDeviceFeaturesSpec.$,
'VkPhysicalDeviceFeatures',
[
mojo.internal.StructField(
'robustBufferAccess', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'fullDrawIndexUint32', 0,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'imageCubeArray', 0,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'independentBlend', 0,
3,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'geometryShader', 0,
4,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'tessellationShader', 0,
5,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sampleRateShading', 0,
6,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'dualSrcBlend', 0,
7,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'logicOp', 1,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'multiDrawIndirect', 1,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'drawIndirectFirstInstance', 1,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'depthClamp', 1,
3,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'depthBiasClamp', 1,
4,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'fillModeNonSolid', 1,
5,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'depthBounds', 1,
6,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'wideLines', 1,
7,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'largePoints', 2,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'alphaToOne', 2,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'multiViewport', 2,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'samplerAnisotropy', 2,
3,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'textureCompressionETC2', 2,
4,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'textureCompressionASTCLDR', 2,
5,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'textureCompressionBC', 2,
6,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'occlusionQueryPrecise', 2,
7,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'pipelineStatisticsQuery', 3,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'vertexPipelineStoresAndAtomics', 3,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'fragmentStoresAndAtomics', 3,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderTessellationAndGeometryPointSize', 3,
3,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderImageGatherExtended', 3,
4,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderStorageImageExtendedFormats', 3,
5,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderStorageImageMultisample', 3,
6,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderStorageImageReadWithoutFormat', 3,
7,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderStorageImageWriteWithoutFormat', 4,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderUniformBufferArrayDynamicIndexing', 4,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderSampledImageArrayDynamicIndexing', 4,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderStorageBufferArrayDynamicIndexing', 4,
3,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderStorageImageArrayDynamicIndexing', 4,
4,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderClipDistance', 4,
5,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderCullDistance', 4,
6,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderFloat64', 4,
7,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderInt64', 5,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderInt16', 5,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderResourceResidency', 5,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'shaderResourceMinLod', 5,
3,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sparseBinding', 5,
4,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sparseResidencyBuffer', 5,
5,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sparseResidencyImage2D', 5,
6,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sparseResidencyImage3D', 5,
7,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sparseResidency2Samples', 6,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sparseResidency4Samples', 6,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sparseResidency8Samples', 6,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sparseResidency16Samples', 6,
3,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'sparseResidencyAliased', 6,
4,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'variableMultisampleRate', 6,
5,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'inheritedQueries', 6,
6,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
gpu.mojom.VkPhysicalDeviceFeatures_Deserialize =
mojo.internal.createStructDeserializer(gpu.mojom.VkPhysicalDeviceFeaturesSpec.$);
/** @record */
gpu.mojom.VkPhysicalDeviceFeatures = class {
constructor() {
/** @export { !boolean } */
this.robustBufferAccess;
/** @export { !boolean } */
this.fullDrawIndexUint32;
/** @export { !boolean } */
this.imageCubeArray;
/** @export { !boolean } */
this.independentBlend;
/** @export { !boolean } */
this.geometryShader;
/** @export { !boolean } */
this.tessellationShader;
/** @export { !boolean } */
this.sampleRateShading;
/** @export { !boolean } */
this.dualSrcBlend;
/** @export { !boolean } */
this.logicOp;
/** @export { !boolean } */
this.multiDrawIndirect;
/** @export { !boolean } */
this.drawIndirectFirstInstance;
/** @export { !boolean } */
this.depthClamp;
/** @export { !boolean } */
this.depthBiasClamp;
/** @export { !boolean } */
this.fillModeNonSolid;
/** @export { !boolean } */
this.depthBounds;
/** @export { !boolean } */
this.wideLines;
/** @export { !boolean } */
this.largePoints;
/** @export { !boolean } */
this.alphaToOne;
/** @export { !boolean } */
this.multiViewport;
/** @export { !boolean } */
this.samplerAnisotropy;
/** @export { !boolean } */
this.textureCompressionETC2;
/** @export { !boolean } */
this.textureCompressionASTCLDR;
/** @export { !boolean } */
this.textureCompressionBC;
/** @export { !boolean } */
this.occlusionQueryPrecise;
/** @export { !boolean } */
this.pipelineStatisticsQuery;
/** @export { !boolean } */
this.vertexPipelineStoresAndAtomics;
/** @export { !boolean } */
this.fragmentStoresAndAtomics;
/** @export { !boolean } */
this.shaderTessellationAndGeometryPointSize;
/** @export { !boolean } */
this.shaderImageGatherExtended;
/** @export { !boolean } */
this.shaderStorageImageExtendedFormats;
/** @export { !boolean } */
this.shaderStorageImageMultisample;
/** @export { !boolean } */
this.shaderStorageImageReadWithoutFormat;
/** @export { !boolean } */
this.shaderStorageImageWriteWithoutFormat;
/** @export { !boolean } */
this.shaderUniformBufferArrayDynamicIndexing;
/** @export { !boolean } */
this.shaderSampledImageArrayDynamicIndexing;
/** @export { !boolean } */
this.shaderStorageBufferArrayDynamicIndexing;
/** @export { !boolean } */
this.shaderStorageImageArrayDynamicIndexing;
/** @export { !boolean } */
this.shaderClipDistance;
/** @export { !boolean } */
this.shaderCullDistance;
/** @export { !boolean } */
this.shaderFloat64;
/** @export { !boolean } */
this.shaderInt64;
/** @export { !boolean } */
this.shaderInt16;
/** @export { !boolean } */
this.shaderResourceResidency;
/** @export { !boolean } */
this.shaderResourceMinLod;
/** @export { !boolean } */
this.sparseBinding;
/** @export { !boolean } */
this.sparseResidencyBuffer;
/** @export { !boolean } */
this.sparseResidencyImage2D;
/** @export { !boolean } */
this.sparseResidencyImage3D;
/** @export { !boolean } */
this.sparseResidency2Samples;
/** @export { !boolean } */
this.sparseResidency4Samples;
/** @export { !boolean } */
this.sparseResidency8Samples;
/** @export { !boolean } */
this.sparseResidency16Samples;
/** @export { !boolean } */
this.sparseResidencyAliased;
/** @export { !boolean } */
this.variableMultisampleRate;
/** @export { !boolean } */
this.inheritedQueries;
}
};
mojo.internal.Struct(
gpu.mojom.VkExtent3DSpec.$,
'VkExtent3D',
[
mojo.internal.StructField(
'width', 0,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'height', 4,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'depth', 8,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
],
[[0, 24],]);
gpu.mojom.VkExtent3D_Deserialize =
mojo.internal.createStructDeserializer(gpu.mojom.VkExtent3DSpec.$);
/** @record */
gpu.mojom.VkExtent3D = class {
constructor() {
/** @export { !number } */
this.width;
/** @export { !number } */
this.height;
/** @export { !number } */
this.depth;
}
};
mojo.internal.Struct(
gpu.mojom.VkQueueFamilyPropertiesSpec.$,
'VkQueueFamilyProperties',
[
mojo.internal.StructField(
'queueFlags', 0,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'queueCount', 4,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'timestampValidBits', 8,
0,
mojo.internal.Uint32,
0,
false /* nullable */),
mojo.internal.StructField(
'minImageTransferGranularity', 16,
0,
gpu.mojom.VkExtent3DSpec.$,
null,
false /* nullable */),
],
[[0, 32],]);
gpu.mojom.VkQueueFamilyProperties_Deserialize =
mojo.internal.createStructDeserializer(gpu.mojom.VkQueueFamilyPropertiesSpec.$);
/** @record */
gpu.mojom.VkQueueFamilyProperties = class {
constructor() {
/** @export { !number } */
this.queueFlags;
/** @export { !number } */
this.queueCount;
/** @export { !number } */
this.timestampValidBits;
/** @export { !gpu.mojom.VkExtent3D } */
this.minImageTransferGranularity;
}
};