UNPKG

react-babylonjs

Version:
21 lines (20 loc) 831 B
import { GlslangOptions, WebGPUEngineOptions } from '@babylonjs/core/Engines/webgpuEngine.js'; import { TwgslOptions } from '@babylonjs/core/Engines/WebGPU/webgpuTintWASM.js'; import React, { ReactNode } from 'react'; import type { SharedEngineProps } from './engineProps'; export type WebGPUEngineOnlyProps = { webGPUEngineOptions?: WebGPUEngineOptions; /** * Passed to asyncInit (when provided) */ glslangOptions?: GlslangOptions; /** * Passed to asyncInit (when provided) */ twgslOptions?: TwgslOptions; }; export type WebGPUEngineProps = WebGPUEngineOnlyProps & SharedEngineProps & { children?: ReactNode | undefined; } & React.CanvasHTMLAttributes<HTMLCanvasElement>; declare const ReactBabylonjsWebGPUEngine: React.FC<WebGPUEngineProps>; export default ReactBabylonjsWebGPUEngine;