1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9 #include "mozilla/dom/WebGPUBinding.h"
15 struct GPUComputePassDescriptor
;
18 using GPUExtent3D
= RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict
;
19 using OwningGPUExtent3D
=
20 OwningRangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict
;
27 void ConvertExtent3DToFFI(const dom::GPUExtent3D
& aExtent
,
28 ffi::WGPUExtent3d
* aExtentFFI
);
30 void ConvertExtent3DToFFI(const dom::OwningGPUExtent3D
& aExtent
,
31 ffi::WGPUExtent3d
* aExtentFFI
);
33 ffi::WGPUExtent3d
ConvertExtent(const dom::GPUExtent3D
& aExtent
);
35 ffi::WGPUExtent3d
ConvertExtent(const dom::OwningGPUExtent3D
& aExtent
);
37 ffi::WGPUCompareFunction
ConvertCompareFunction(
38 const dom::GPUCompareFunction
& aCompare
);
40 ffi::WGPUTextureFormat
ConvertTextureFormat(
41 const dom::GPUTextureFormat
& aFormat
);
43 ffi::WGPUMultisampleState
ConvertMultisampleState(
44 const dom::GPUMultisampleState
& aDesc
);
46 ffi::WGPUBlendComponent
ConvertBlendComponent(
47 const dom::GPUBlendComponent
& aDesc
);
49 ffi::WGPUStencilFaceState
ConvertStencilFaceState(
50 const dom::GPUStencilFaceState
& aDesc
);
52 ffi::WGPUDepthStencilState
ConvertDepthStencilState(
53 const dom::GPUDepthStencilState
& aDesc
);
56 } // namespace mozilla