Skip to content

Procedure

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/webgpu/compute/Procedure.ts for the most up-to-date information.

Overview

TODO: doc

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class Procedure

import { Procedure } from 'scenerystack/alpenglow';

Constructor

new Procedure( routine : Routine<IntentionalAny, In, Out>, resourceMap : Map<ResourceSlot, Resource>, bindGroupMap : Map<BindGroupLayout, BindGroup> )

Instance Methods

bind( slot : ResourceSlot, resource : Resource ) : this

bindTexture( textureSlot : TextureViewSlot, resource : TextureViewResource ) : this

Should be callable repeatedly (TODO test)

bindRemainingBuffers() : this

createChild() : Procedure<In, Out>

execute( executor : Executor, data : In, options? : ProcedureExecuteOptions ) : Promise<Out>

standaloneExecute( deviceContext : DeviceContext, data : In, options? : ProcedureStandaloneExecuteOptions ) : Promise<Out>

getLogBuffer() : GPUBuffer | null

dispose()

Type ProcedureExecuteOptions

import type { ProcedureExecuteOptions } from 'scenerystack/alpenglow';
  • separateComputePasses?: boolean

Type ProcedureStandaloneExecuteOptions

import type { ProcedureStandaloneExecuteOptions } from 'scenerystack/alpenglow';

Source Code

See the source for Procedure.ts in the alpenglow repository.