| // gpu/ipc/common/vulkan_info.mojom-lite-for-compile.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'; |
| |
| goog.require('mojo.internal'); |
| |
| goog.require('gpu.mojom.VkExtensionProperties'); |
| goog.require('gpu.mojom.VkLayerProperties'); |
| goog.require('gpu.mojom.VkPhysicalDeviceFeatures'); |
| goog.require('gpu.mojom.VkPhysicalDeviceProperties'); |
| goog.require('gpu.mojom.VkQueueFamilyProperties'); |
| |
| |
| |
| |
| |
| |
| goog.provide('gpu.mojom.VulkanPhysicalDeviceInfoSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| gpu.mojom.VulkanPhysicalDeviceInfoSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| goog.provide('gpu.mojom.VulkanInfoSpec'); |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| gpu.mojom.VulkanInfoSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| gpu.mojom.VulkanPhysicalDeviceInfoSpec.$, |
| 'VulkanPhysicalDeviceInfo', |
| [ |
| mojo.internal.StructField( |
| 'properties', 0, |
| 0, |
| gpu.mojom.VkPhysicalDevicePropertiesSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'extensions', 8, |
| 0, |
| mojo.internal.Array(gpu.mojom.VkExtensionPropertiesSpec.$, false), |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'features', 16, |
| 0, |
| gpu.mojom.VkPhysicalDeviceFeaturesSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'featureSamplerYcbcrConversion', 24, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'featureProtectedMemory', 24, |
| 1, |
| mojo.internal.Bool, |
| false, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'queueFamilies', 32, |
| 0, |
| mojo.internal.Array(gpu.mojom.VkQueueFamilyPropertiesSpec.$, false), |
| null, |
| false /* nullable */), |
| ], |
| [[0, 48],]); |
| |
| |
| gpu.mojom.VulkanPhysicalDeviceInfo_Deserialize = |
| mojo.internal.createStructDeserializer(gpu.mojom.VulkanPhysicalDeviceInfoSpec.$); |
| |
| |
| goog.provide('gpu.mojom.VulkanPhysicalDeviceInfo'); |
| |
| /** @record */ |
| gpu.mojom.VulkanPhysicalDeviceInfo = class { |
| constructor() { |
| /** @export { !gpu.mojom.VkPhysicalDeviceProperties } */ |
| this.properties; |
| /** @export { !Array<!gpu.mojom.VkExtensionProperties> } */ |
| this.extensions; |
| /** @export { !gpu.mojom.VkPhysicalDeviceFeatures } */ |
| this.features; |
| /** @export { !boolean } */ |
| this.featureSamplerYcbcrConversion; |
| /** @export { !boolean } */ |
| this.featureProtectedMemory; |
| /** @export { !Array<!gpu.mojom.VkQueueFamilyProperties> } */ |
| this.queueFamilies; |
| } |
| }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| gpu.mojom.VulkanInfoSpec.$, |
| 'VulkanInfo', |
| [ |
| mojo.internal.StructField( |
| 'apiVersion', 0, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'usedApiVersion', 4, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'instanceExtensions', 8, |
| 0, |
| mojo.internal.Array(gpu.mojom.VkExtensionPropertiesSpec.$, false), |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'enabledInstanceExtensions', 16, |
| 0, |
| mojo.internal.Array(mojo.internal.String, false), |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'instanceLayers', 24, |
| 0, |
| mojo.internal.Array(gpu.mojom.VkLayerPropertiesSpec.$, false), |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'physicalDevices', 32, |
| 0, |
| mojo.internal.Array(gpu.mojom.VulkanPhysicalDeviceInfoSpec.$, false), |
| null, |
| false /* nullable */), |
| ], |
| [[0, 48],]); |
| |
| |
| gpu.mojom.VulkanInfo_Deserialize = |
| mojo.internal.createStructDeserializer(gpu.mojom.VulkanInfoSpec.$); |
| |
| |
| goog.provide('gpu.mojom.VulkanInfo'); |
| |
| /** @record */ |
| gpu.mojom.VulkanInfo = class { |
| constructor() { |
| /** @export { !number } */ |
| this.apiVersion; |
| /** @export { !number } */ |
| this.usedApiVersion; |
| /** @export { !Array<!gpu.mojom.VkExtensionProperties> } */ |
| this.instanceExtensions; |
| /** @export { !Array<!string> } */ |
| this.enabledInstanceExtensions; |
| /** @export { !Array<!gpu.mojom.VkLayerProperties> } */ |
| this.instanceLayers; |
| /** @export { !Array<!gpu.mojom.VulkanPhysicalDeviceInfo> } */ |
| this.physicalDevices; |
| } |
| }; |
| |
| |