aboutsummaryrefslogtreecommitdiff
path: root/src/models/RaytraceContext.ts
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2025-07-26 13:47:20 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2025-07-26 13:47:20 +0100
commitebcef463bb6c447e788c90fe4235f2504de186d3 (patch)
treec7500ef92b51544195ef9fb75744ac2ce39091a8 /src/models/RaytraceContext.ts
parent10bfc58085c6ab7e62077a1a9b6a6d922fffb025 (diff)
downloadjs-raytracer-ebcef463bb6c447e788c90fe4235f2504de186d3.tar.xz
js-raytracer-ebcef463bb6c447e788c90fe4235f2504de186d3.zip
Add configurable render chunk allocation modes
Diffstat (limited to 'src/models/RaytraceContext.ts')
-rw-r--r--src/models/RaytraceContext.ts9
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