@hology/webgpu-renderer 0.1.14 → 0.1.15

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 CHANGED
@@ -314,6 +314,15 @@ interface RendererOptions {
314
314
  readonly presentationHeight: number;
315
315
  present(sourceView: GPUTextureView): void;
316
316
  }) => void;
317
+ /** Records UI/debug overlays onto the native-resolution surface after all upscaling. */
318
+ presentationOverlay?: (context: {
319
+ readonly device: GPUDevice;
320
+ readonly encoder: GPUCommandEncoder;
321
+ readonly targetView: GPUTextureView;
322
+ readonly targetFormat: GPUTextureFormat;
323
+ readonly presentationWidth: number;
324
+ readonly presentationHeight: number;
325
+ }) => void;
317
326
  /** Material used when a mesh does not already use WGSLShaderMaterial. */
318
327
  fallbackMaterial?: WGSLShaderMaterial;
319
328
  /** Optional bridge for graph/material systems layered on top of Three. */
@@ -886,6 +895,8 @@ declare class WebGpuRenderer {
886
895
  private readonly textureManager;
887
896
  private readonly renderGraph;
888
897
  private readonly nativePostSubmit;
898
+ private readonly presentationOverlay;
899
+ private readonly presentationOverlayContext;
889
900
  private readonly directionalShadowCameras;
890
901
  private readonly pointShadowCameras;
891
902
  private readonly spotShadowCameras;
@@ -1071,6 +1082,7 @@ declare class WebGpuRenderer {
1071
1082
  createStaticDrawSet(root: Object3D, options?: StaticDrawSetOptions): StaticDrawSet;
1072
1083
  private disposeStaticDrawSetResource;
1073
1084
  private renderFrame;
1085
+ private recordPresentationOverlay;
1074
1086
  destroy(): void;
1075
1087
  private createStaticPipelines;
1076
1088
  private recreateShadowResources;