| 196 | } |
| 197 | |
| 198 | export class EmptySplatSource implements SplatSource { |
| 199 | fetchDyno = new Dyno({ |
| 200 | inTypes: {}, |
| 201 | outTypes: { gsplat: Gsplat }, |
| 202 | globals: () => [defineGsplat], |
| 203 | statements: ({ outputs }) => |
| 204 | unindentLines(` |
| 205 | ${outputs.gsplat}.flags = 0u; |
| 206 | return; |
| 207 | `), |
| 208 | }).outputs.gsplat; |
| 209 | |
| 210 | prepareFetchSplat() {} |
| 211 | dispose() {} |
| 212 | |
| 213 | getNumSplats() { |
| 214 | return 0; |
| 215 | } |
| 216 | hasRgbDir() { |
| 217 | return false; |
| 218 | } |
| 219 | getNumSh() { |
| 220 | return 0; |
| 221 | } |
| 222 | setMaxSh(maxSh: number) {} |
| 223 | |
| 224 | fetchSplat({ index }: { index: DynoVal<"int"> }): DynoVal<typeof Gsplat> { |
| 225 | return this.fetchDyno; |
| 226 | } |
| 227 | |
| 228 | forEachSplat() {} |
| 229 | } |
| 230 | |
| 231 | export class SplatMesh extends SplatGenerator { |
| 232 | // A Promise<SplatMesh> you can await to ensure fetching, parsing, |
nothing calls this directly
no test coverage detected