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¶
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¶
- separateComputePasses?: boolean
Type ProcedureStandaloneExecuteOptions¶
- procedureExecuteOptions?: ProcedureExecuteOptions
- executorOptions?: ExecutorOptions
Source Code¶
See the source for Procedure.ts in the alpenglow repository.