| // gpu/ipc/common/shared_image_capabilities.mojom-lite.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2018 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| /** |
| * @fileoverview |
| * @suppress {missingRequire} |
| */ |
| 'use strict'; |
| |
| |
| mojo.internal.exportModule('gpu.mojom'); |
| |
| |
| |
| |
| |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| gpu.mojom.SharedImageCapabilitiesSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| gpu.mojom.SharedImageCapabilitiesSpec.$, |
| 'SharedImageCapabilities', |
| [ |
| mojo.internal.StructField( |
| 'supportsScanoutSharedImages', 0, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'supportsLuminanceSharedImages', 0, |
| 1, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'supportsR16SharedImages', 0, |
| 2, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'supportsNativeNv12MappableSharedImages', 0, |
| 3, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'isR16fSupported', 0, |
| 4, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'disableR8SharedImages', 0, |
| 5, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'disableWebgpuSharedImages', 0, |
| 6, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'disableOneComponentTextures', 0, |
| 7, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'sharedImageD3d', 1, |
| 0, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| mojo.internal.StructField( |
| 'sharedImageSwapChain', 1, |
| 1, |
| mojo.internal.Bool, |
| false, |
| false, /* nullable */ |
| 0 /* minVersion */, |
| ), |
| ], |
| [[0, 16],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| gpu.mojom.SharedImageCapabilities = class { |
| constructor() { |
| /** @export { !boolean } */ |
| this.supportsScanoutSharedImages; |
| /** @export { !boolean } */ |
| this.supportsLuminanceSharedImages; |
| /** @export { !boolean } */ |
| this.supportsR16SharedImages; |
| /** @export { !boolean } */ |
| this.supportsNativeNv12MappableSharedImages; |
| /** @export { !boolean } */ |
| this.isR16fSupported; |
| /** @export { !boolean } */ |
| this.disableR8SharedImages; |
| /** @export { !boolean } */ |
| this.disableWebgpuSharedImages; |
| /** @export { !boolean } */ |
| this.disableOneComponentTextures; |
| /** @export { !boolean } */ |
| this.sharedImageD3d; |
| /** @export { !boolean } */ |
| this.sharedImageSwapChain; |
| } |
| }; |
| |