@hology/webgpu-renderer 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -214,6 +214,8 @@ interface RendererOptions {
|
|
|
214
214
|
powerPreference?: GPUPowerPreference;
|
|
215
215
|
shadowMapSize?: number;
|
|
216
216
|
directionalShadowUpdates?: DirectionalShadowUpdateOptions;
|
|
217
|
+
/** GPU caster selection/indirect submission for supported static draws. Defaults to true. */
|
|
218
|
+
directionalShadowGpuCulling?: boolean;
|
|
217
219
|
pointShadowMapSize?: number;
|
|
218
220
|
sampleCount?: number;
|
|
219
221
|
hiZOcclusionCulling?: boolean;
|
|
@@ -426,6 +428,8 @@ interface RendererFrameProfile {
|
|
|
426
428
|
reusedLayers: number;
|
|
427
429
|
forcedLayers: number;
|
|
428
430
|
updateMask: number;
|
|
431
|
+
/** Indirect command count; triangle counters remain upper bounds with GPU culling. */
|
|
432
|
+
gpuIndirectDraws?: number;
|
|
429
433
|
};
|
|
430
434
|
frameIndex: number;
|
|
431
435
|
cpuTimeMs: number;
|
|
@@ -987,6 +991,8 @@ declare class WebGpuRenderer {
|
|
|
987
991
|
private readonly presentationOverlayContext;
|
|
988
992
|
private readonly directionalShadowCameras;
|
|
989
993
|
private readonly directionalShadowScheduler;
|
|
994
|
+
private readonly directionalShadowGpu;
|
|
995
|
+
private readonly directionalShadowSubmissionStats;
|
|
990
996
|
private readonly pointShadowCameras;
|
|
991
997
|
private readonly spotShadowCameras;
|
|
992
998
|
private readonly colorTargetCache;
|
|
@@ -1135,6 +1141,7 @@ declare class WebGpuRenderer {
|
|
|
1135
1141
|
setDirectionalShadowUpdateOptions(options: DirectionalShadowUpdateOptions): void;
|
|
1136
1142
|
/** Invalidate retained maps after discontinuous caster/scene changes. */
|
|
1137
1143
|
invalidateDirectionalShadows(): void;
|
|
1144
|
+
setDirectionalShadowGpuCullingEnabled(enabled: boolean): void;
|
|
1138
1145
|
setDirectionalShadowsEnabled(enabled: boolean): void;
|
|
1139
1146
|
setRenderGraphProfilingEnabled(enabled: boolean): void;
|
|
1140
1147
|
getRenderGraphProfilingEnabled(): boolean;
|
|
@@ -1327,6 +1334,7 @@ declare class WebGpuRenderer {
|
|
|
1327
1334
|
private getMaterialVertexAttributes;
|
|
1328
1335
|
private getGeometryVertexBuffer;
|
|
1329
1336
|
private cacheGeometryVertexBufferFast;
|
|
1337
|
+
private readonly packedVertexGroups;
|
|
1330
1338
|
private getInterleavedGeometryVertexBuffer;
|
|
1331
1339
|
private ensureWireframeIndex;
|
|
1332
1340
|
private bindGeometryVertexBuffers;
|