@hology/webgpu-renderer 0.1.15 → 0.1.16
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 +7 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -292,6 +292,8 @@ interface RendererOptions {
|
|
|
292
292
|
pointShadowMapSize?: number;
|
|
293
293
|
sampleCount?: number;
|
|
294
294
|
hiZOcclusionCulling?: boolean;
|
|
295
|
+
/** 16x16 GPU point-light masks for opaque graph materials. Defaults to true. */
|
|
296
|
+
tiledLighting?: boolean;
|
|
295
297
|
/**
|
|
296
298
|
* Uses Chromium's experimental multi-draw-indirect command for GPU-culled
|
|
297
299
|
* static draw sets when the adapter supports it. Defaults to true.
|
|
@@ -829,6 +831,8 @@ declare class WebGpuRenderer {
|
|
|
829
831
|
private multiDrawIndirectEnabled;
|
|
830
832
|
private dynamicBatchingEnabled;
|
|
831
833
|
private multiDrawIndirectSupported;
|
|
834
|
+
private tiledPointLights;
|
|
835
|
+
private tiledLightingEnabled;
|
|
832
836
|
private renderGraphProfilingEnabled;
|
|
833
837
|
private indirectFirstInstanceSupported;
|
|
834
838
|
private timestampQuerySupported;
|
|
@@ -1055,6 +1059,8 @@ declare class WebGpuRenderer {
|
|
|
1055
1059
|
getHiZOcclusionCullingActive(): boolean;
|
|
1056
1060
|
setMultiDrawIndirectEnabled(enabled: boolean): void;
|
|
1057
1061
|
getMultiDrawIndirectEnabled(): boolean;
|
|
1062
|
+
/** Toggle without recompiling materials, for scene-specific GPU comparisons. */
|
|
1063
|
+
setTiledLightingEnabled(enabled: boolean): void;
|
|
1058
1064
|
setDynamicBatchingEnabled(enabled: boolean): void;
|
|
1059
1065
|
getDynamicBatchingEnabled(): boolean;
|
|
1060
1066
|
getMultiDrawIndirectSupported(): boolean;
|
|
@@ -1270,6 +1276,7 @@ declare class WebGpuRenderer {
|
|
|
1270
1276
|
private getDepthPassMaterialResourceAsync;
|
|
1271
1277
|
private getMaterialResource;
|
|
1272
1278
|
private getMaterialResourceAsync;
|
|
1279
|
+
private ensureTiledLightingSize;
|
|
1273
1280
|
private updateCameraUniforms;
|
|
1274
1281
|
private updateTemporalVisibilityUniforms;
|
|
1275
1282
|
private commitTemporalHiZHistory;
|