智慧水务管理系统 - 精河县供水工程综合管理平台

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Generate a splat texture from the given attributes.
  5. *
  6. * Wraps the [`texture_gen::generate_texture_from_attrs`] function for access from JavaScript.
  7. */
  8. export function generate_splat_texture(positions: Float32Array, scales: Float32Array, rotations: Float32Array, colors: Uint8Array, count: number): TextureData;
  9. /**
  10. * Sorts the Gaussian Splats by depth using a radix sort.
  11. *
  12. * Wraps the [`radix::radix_sort_gaussians_indexes`] function for access from JavaScript.
  13. */
  14. export function radix_sort_gaussians_indexes(positions_arr: Float32Array, model_view_arr: Float32Array, count: number): Uint32Array;
  15. /**
  16. * A structure representing texture data. This is used to pass the texture data from generation in [`texture_gen`] to the JavaScript side.
  17. */
  18. export class TextureData {
  19. private constructor();
  20. free(): void;
  21. /**
  22. * Creates a new texture data object with the underlying data, width, and height.
  23. */
  24. static new(data: Uint32Array, width: number, height: number): TextureData;
  25. /**
  26. * Getter for the underlying texture data. Always returns a copy.
  27. */
  28. readonly data: Uint32Array;
  29. /**
  30. * Getter for the width of the texture in pixels.
  31. */
  32. readonly width: number;
  33. /**
  34. * Getter for the height of the texture in pixels.
  35. */
  36. readonly height: number;
  37. }
  38. export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
  39. export interface InitOutput {
  40. readonly memory: WebAssembly.Memory;
  41. readonly __wbg_texturedata_free: (a: number, b: number) => void;
  42. readonly texturedata_data: (a: number) => [number, number];
  43. readonly texturedata_width: (a: number) => number;
  44. readonly texturedata_height: (a: number) => number;
  45. readonly texturedata_new: (a: number, b: number, c: number, d: number) => number;
  46. readonly generate_splat_texture: (a: any, b: any, c: any, d: any, e: number) => [number, number, number];
  47. readonly radix_sort_gaussians_indexes: (a: any, b: any, c: number) => [number, number, number];
  48. readonly __wbindgen_export_0: WebAssembly.Table;
  49. readonly __wbindgen_free: (a: number, b: number, c: number) => void;
  50. readonly __wbindgen_malloc: (a: number, b: number) => number;
  51. readonly __externref_table_dealloc: (a: number) => void;
  52. readonly __wbindgen_start: () => void;
  53. }
  54. export type SyncInitInput = BufferSource | WebAssembly.Module;
  55. /**
  56. * Instantiates the given `module`, which can either be bytes or
  57. * a precompiled `WebAssembly.Module`.
  58. *
  59. * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
  60. *
  61. * @returns {InitOutput}
  62. */
  63. export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
  64. /**
  65. * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
  66. * for everything else, calls `WebAssembly.instantiate` directly.
  67. *
  68. * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
  69. *
  70. * @returns {Promise<InitOutput>}
  71. */
  72. export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;