@hology/webgpu-renderer 0.1.16 → 0.1.18
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 +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -450,6 +450,8 @@ interface RendererCustomPassContext {
|
|
|
450
450
|
};
|
|
451
451
|
/** Resolves the current renderer-owned vertex buffer for a geometry. */
|
|
452
452
|
getGeometryVertexBuffer(geometry: BufferGeometry, attribute: "position" | "normal"): GPUBuffer;
|
|
453
|
+
/** Shared current bone-world * inverse-bind palette; renderer owns its lifetime. */
|
|
454
|
+
getSkeletonBoneBuffer(skeleton: three.Skeleton): GPUBuffer;
|
|
453
455
|
getColorFormat(name: string): GPUTextureFormat;
|
|
454
456
|
getShadowMapDebugInfo(): RendererShadowMapDebugInfo;
|
|
455
457
|
/** Shared light uniforms and shadow arrays used by the forward renderer. */
|
|
@@ -494,6 +496,10 @@ interface RendererFrameProfile {
|
|
|
494
496
|
triangleCount: number;
|
|
495
497
|
cpuPhases: {
|
|
496
498
|
extractSceneMs: number;
|
|
499
|
+
/** Included in extractSceneMs; covers key updates, ordering and result consumption. */
|
|
500
|
+
opaqueSortMs?: number;
|
|
501
|
+
/** Mean of the last 120 profiled frames, smoothing timer quantization. */
|
|
502
|
+
opaqueSortAverageMs?: number;
|
|
497
503
|
uploadMs: number;
|
|
498
504
|
renderGraphMs: number;
|
|
499
505
|
};
|
|
@@ -813,6 +819,7 @@ type ToonOutlineParameters = {
|
|
|
813
819
|
visible?: boolean;
|
|
814
820
|
};
|
|
815
821
|
declare class WebGpuRenderer {
|
|
822
|
+
private pipelineCompilationDiagnostics?;
|
|
816
823
|
readonly canvas: HTMLCanvasElement;
|
|
817
824
|
private readonly clearColor;
|
|
818
825
|
private readonly powerPreference;
|
|
@@ -1003,6 +1010,16 @@ declare class WebGpuRenderer {
|
|
|
1003
1010
|
private createExtractedHemisphereLightScratch;
|
|
1004
1011
|
private createExtractedPointLightScratch;
|
|
1005
1012
|
private createExtractedSpotLightScratch;
|
|
1013
|
+
private readonly skinnedDrawKeys;
|
|
1014
|
+
private readonly skeletonPalettes;
|
|
1015
|
+
private readonly getSkeletonBoneBufferForPass;
|
|
1016
|
+
private readonly outlineResolvedFrameCache;
|
|
1017
|
+
private opaqueSortMs;
|
|
1018
|
+
private readonly opaqueSortSamples;
|
|
1019
|
+
private opaqueSortSampleIndex;
|
|
1020
|
+
private opaqueSortSampleCount;
|
|
1021
|
+
private opaqueSortSampleTotal;
|
|
1022
|
+
private sortOpaqueDraws;
|
|
1006
1023
|
constructor(options: RendererOptions);
|
|
1007
1024
|
private resolveMaterial;
|
|
1008
1025
|
private resolveLineMaterial;
|
|
@@ -1197,6 +1214,7 @@ declare class WebGpuRenderer {
|
|
|
1197
1214
|
private getSkinningPalette;
|
|
1198
1215
|
private refreshSkinningPalette;
|
|
1199
1216
|
private refreshSkinningBindMatrices;
|
|
1217
|
+
private uploadSkinningPalette;
|
|
1200
1218
|
private uploadSkinningResources;
|
|
1201
1219
|
private createSkinningBoneBounds;
|
|
1202
1220
|
private updateSkinnedBounds;
|