react-native-filament
Version:
A real-time physically based 3D rendering engine for React Native
16 lines • 658 B
TypeScript
import type { Engine, EngineBackend, EngineConfig } from '../types';
import { IWorkletContext } from 'react-native-worklets-core';
export interface EngineProps {
/**
* The backend to be used. By default it picks "opengl" for android and "metal" for ios.
*/
backend?: EngineBackend;
/**
* The engine config. Can be used to tweak buffer sizes.
* You probably don't need that unless you do a lot and ran into engine crashes.
*/
config?: EngineConfig;
context: IWorkletContext;
}
export declare function useEngine({ backend, config, context }: EngineProps): Engine | undefined;
//# sourceMappingURL=useEngine.d.ts.map