diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2025-07-26 13:47:20 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2025-07-26 13:47:20 +0100 |
| commit | ebcef463bb6c447e788c90fe4235f2504de186d3 (patch) | |
| tree | c7500ef92b51544195ef9fb75744ac2ce39091a8 /src/models | |
| parent | 10bfc58085c6ab7e62077a1a9b6a6d922fffb025 (diff) | |
| download | js-raytracer-ebcef463bb6c447e788c90fe4235f2504de186d3.tar.xz js-raytracer-ebcef463bb6c447e788c90fe4235f2504de186d3.zip | |
Add configurable render chunk allocation modes
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/RaytraceContext.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/models/RaytraceContext.ts b/src/models/RaytraceContext.ts index acd4336..d028c1a 100644 --- a/src/models/RaytraceContext.ts +++ b/src/models/RaytraceContext.ts @@ -38,6 +38,13 @@ export interface RaytracerOptions { refractions: boolean; maxRecurseDepth: number; maxDrawDistance: number; - bufferDrawCalls: boolean; directMemoryTransfer: boolean; + chunkAllocationMode: ChunkAllocationMode; } + +export enum ChunkAllocationMode { + SEQUENTIAL, + RANDOM, + CENTER_TO_EDGE, + EDGE_TO_CENTER +}
\ No newline at end of file |