Skip to content

Resource

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/Resource.ts for the most up-to-date information.

Overview

TODO: doc

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

Class Resource

import { Resource } from 'scenerystack/alpenglow';

Constructor

new Resource( resource : GPUBuffer | GPUTextureView )

Instance Methods

getBindGroupEntry( binding : Binding ) : GPUBindGroupEntry

TODO: consider modifying to just BufferLocation or bindingIndex

toDebugString() : string

Instance Properties

id : number

(readonly)

Source Code

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