diff --git a/types/three/examples/jsm/renderers/webgpu/utils/WebGPUAttributeUtils.d.ts b/types/three/examples/jsm/renderers/webgpu/utils/WebGPUAttributeUtils.d.ts new file mode 100644 index 000000000..3f9cc82d3 --- /dev/null +++ b/types/three/examples/jsm/renderers/webgpu/utils/WebGPUAttributeUtils.d.ts @@ -0,0 +1,14 @@ +import { BufferAttribute } from "three"; +import Backend from "../../common/Backend"; +import RenderObject from "../../common/RenderObject"; + +export default class WebGPUAttributeUtiils { + backend: Backend; + + constructor(backend: Backend); + createAttribute(attribute: BufferAttribute, usage: number); + updateAttribute(attribute: BufferAttribute); + // createShaderVertexBuffers(renderObject: RenderObject): GPUVertexBufferLayout[]; + destroyAttribute(attribute: BufferAttribute); + getArrayBufferAsync(attribute: BufferAttribute): ArrayBuffer; +} diff --git a/types/three/examples/jsm/renderers/webgpu/utils/WebGPUBindingUtils.d.ts b/types/three/examples/jsm/renderers/webgpu/utils/WebGPUBindingUtils.d.ts new file mode 100644 index 000000000..116bca94e --- /dev/null +++ b/types/three/examples/jsm/renderers/webgpu/utils/WebGPUBindingUtils.d.ts @@ -0,0 +1,12 @@ +import Backend from "../../common/Backend"; +import Binding from "../../common/Binding"; + +export default class WebGPUBindingUtils { + backend: Backend; + + constructor(backend: Backend); + // createBindingsLayout(bindings: Binding[]): GPUBindGroupLayout; + createBindings(bindings: Binding[]); + updateBinding(binding: Binding); + // createBindGroup(bindings: Binding[], layoutGPU: GPUBindGroupLayout): GPUBindGroup; +}