(path: string)
| 119 | declare function bloom_get_render_texture_texture(handle: number): number; |
| 120 | |
| 121 | export async function loadTextureAsync(path: string): Promise<Texture> { |
| 122 | const stagingHandle = await spawn(() => bloom_stage_texture(path as any)); |
| 123 | const id = bloom_commit_texture(stagingHandle); |
| 124 | const width = bloom_get_texture_width(id); |
| 125 | const height = bloom_get_texture_height(id); |
| 126 | return { id, width, height }; |
| 127 | } |
| 128 | |
| 129 | export function stageTextures(paths: string[]): number[] { |
| 130 | return parallelMap(paths, (path: string) => bloom_stage_texture(path as any)); |
nothing calls this directly
no test coverage detected