Home Reference Source
import GPUBuffer from './core/cgp/cgp_gpubuffer.js'
public class | source

GPUBuffer

Extends:

EventTarget → GPUBuffer

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public get
public

id: *

public get

length: *

public

needsUpdate: boolean

Private Members
private
private

_cgp: *

private
private

_length: number

private

_name: *

Method Summary

Public Methods
public
public
public

setData(d: *)

public

setLength(s: *)

public

updateGpuBuffer(cgp: *)

Public Constructors

public constructor() source

Public Members

public floatArr: * source

public get gpuBuffer: * source

public id: * source

public get length: * source

public needsUpdate: boolean source

Private Members

private _buffCfg: * source

private _cgp: * source

private _gpuBuffer: * source

private _length: number source

private _name: * source

Public Methods

public dispose() source

public getSizeBytes(): * source

Return:

*

public setData(d: *) source

Params:

NameTypeAttributeDescription
d *

public setLength(s: *) source

Params:

NameTypeAttributeDescription
s *

public updateGpuBuffer(cgp: *) source

Params:

NameTypeAttributeDescription
cgp *