Skip to content

Commit

Permalink
WebGPURenderer: Add .outputType backend parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Jan 21, 2025
1 parent e0e033b commit 6b5b21c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/three/src/renderers/webgpu/WebGPUBackend.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="@webgpu/types" />

import { CoordinateSystem } from "../../constants.js";
import { CoordinateSystem, HalfFloatType, UnsignedByteType } from "../../constants.js";
import Backend, { BackendParameters } from "../common/Backend.js";

export interface WebGPUBackendParameters extends BackendParameters {
Expand All @@ -10,6 +10,7 @@ export interface WebGPUBackendParameters extends BackendParameters {
device?: GPUDevice | undefined;
powerPreference?: GPUPowerPreference | undefined;
context?: GPUCanvasContext | undefined;
outputType?: typeof UnsignedByteType | typeof HalfFloatType | undefined;
}

export default class WebGPUBackend extends Backend {
Expand Down

0 comments on commit 6b5b21c

Please sign in to comment.