@hology/webgpu-renderer 0.1.27 → 0.1.29
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 +18 -0
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -166,6 +166,8 @@ declare class WGSLShaderMaterial extends Material {
|
|
|
166
166
|
customProgramCacheKey(): string;
|
|
167
167
|
/** Depth passes can share pipelines despite differences in unused forward shading. */
|
|
168
168
|
getDepthProgramCacheKey(pointShadow?: boolean): string;
|
|
169
|
+
/** Set needsUpdate after changing rasterizer state on an active material. */
|
|
170
|
+
private getPolygonOffsetCacheKey;
|
|
169
171
|
private createProgramCacheKey;
|
|
170
172
|
getTexturesList(): readonly Texture[];
|
|
171
173
|
usesSceneTextures(): boolean;
|
|
@@ -207,10 +209,16 @@ interface RenderGraphPass {
|
|
|
207
209
|
|
|
208
210
|
declare class RenderGraph {
|
|
209
211
|
private readonly passes;
|
|
212
|
+
private readonly topologies;
|
|
213
|
+
private readonly executionSnapshots;
|
|
214
|
+
private matchesTopology;
|
|
215
|
+
private matchesResources;
|
|
210
216
|
addPass(pass: RenderGraphPass): void;
|
|
211
217
|
executeAsync(context: RenderGraphContext, observer?: RenderGraphExecutionObserver): Promise<void>;
|
|
212
218
|
execute(context: RenderGraphContext, observer?: RenderGraphExecutionObserver): void;
|
|
213
219
|
reset(): void;
|
|
220
|
+
private createExecutionSnapshot;
|
|
221
|
+
private releaseExecutionSnapshot;
|
|
214
222
|
private resolveExecutionOrder;
|
|
215
223
|
}
|
|
216
224
|
|
|
@@ -1135,6 +1143,7 @@ declare class WebGpuRenderer {
|
|
|
1135
1143
|
private csmCascadeLights;
|
|
1136
1144
|
private readonly shadowCameraUniformScratch;
|
|
1137
1145
|
private readonly cameraViewProjScratch;
|
|
1146
|
+
private readonly cameraDetailProjectionScratch;
|
|
1138
1147
|
private readonly cameraProjectionScratch;
|
|
1139
1148
|
private readonly projectionJitterPixels;
|
|
1140
1149
|
private readonly temporalVisibilityCurrentViewProj;
|
|
@@ -1151,6 +1160,11 @@ declare class WebGpuRenderer {
|
|
|
1151
1160
|
private readonly objectTraversalStackScratch;
|
|
1152
1161
|
private readonly staticSceneSpatialIndex;
|
|
1153
1162
|
private readonly staticMeshDraws;
|
|
1163
|
+
private readonly staticInstanceSlots;
|
|
1164
|
+
private readonly retiredStaticInstanceSlots;
|
|
1165
|
+
private readonly staticSpatialDraws;
|
|
1166
|
+
private staticSpatialDrawRevision;
|
|
1167
|
+
private readonly staticSpatialBatches;
|
|
1154
1168
|
private readonly spatialShadowPlanes;
|
|
1155
1169
|
private spatialShadowCount;
|
|
1156
1170
|
private readonly spatialLocalShadowSpheres;
|
|
@@ -1359,7 +1373,9 @@ declare class WebGpuRenderer {
|
|
|
1359
1373
|
private hasExtractedDirectionalLight;
|
|
1360
1374
|
private getObjectMotionHistory;
|
|
1361
1375
|
private commitObjectMotionHistory;
|
|
1376
|
+
private createRepeatedMeshInstances;
|
|
1362
1377
|
private collectMesh;
|
|
1378
|
+
private collectStaticMeshDraws;
|
|
1363
1379
|
private prepareSceneForCompilation;
|
|
1364
1380
|
private collectInstancedMesh;
|
|
1365
1381
|
private getSkinnedRenderRecord;
|
|
@@ -1369,6 +1385,7 @@ declare class WebGpuRenderer {
|
|
|
1369
1385
|
private collectBatchedMesh;
|
|
1370
1386
|
private uploadInstanceData;
|
|
1371
1387
|
private uploadResidentInstanceData;
|
|
1388
|
+
private invalidateGraphTextureBundles;
|
|
1372
1389
|
private clearIndirectBundleCache;
|
|
1373
1390
|
private clearStaticDrawSetBundleCaches;
|
|
1374
1391
|
/**
|
|
@@ -1456,6 +1473,7 @@ declare class WebGpuRenderer {
|
|
|
1456
1473
|
private prepareGeometryVertexBuffers;
|
|
1457
1474
|
private getStandardVertexAttribute;
|
|
1458
1475
|
private prepareDrawGeometryVertexBuffers;
|
|
1476
|
+
private getInstanceVertexCapacity;
|
|
1459
1477
|
private getDefaultVertexAttributeBuffer;
|
|
1460
1478
|
private getMeshExtractionCacheEntry;
|
|
1461
1479
|
private getInstancedMeshExtractionCacheEntry;
|