webgpuTintWASM.d.ts 762 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Options to load the associated Twgsl library
  3. */
  4. export interface TwgslOptions {
  5. /**
  6. * Defines an existing instance of Twgsl (useful in modules who do not access the global instance).
  7. */
  8. twgsl?: any;
  9. /**
  10. * Defines the URL of the twgsl JS File.
  11. */
  12. jsPath?: string;
  13. /**
  14. * Defines the URL of the twgsl WASM File.
  15. */
  16. wasmPath?: string;
  17. }
  18. /** @internal */
  19. export declare class WebGPUTintWASM {
  20. private static readonly _TWgslDefaultOptions;
  21. static ShowWGSLShaderCode: boolean;
  22. static DisableUniformityAnalysis: boolean;
  23. private static _Twgsl;
  24. initTwgsl(twgslOptions?: TwgslOptions): Promise<void>;
  25. convertSpirV2WGSL(code: Uint32Array, disableUniformityAnalysis?: boolean): string;
  26. }