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