Home Reference Source
import Uniform from './core/cgp/cgp_uniform.js'
public class | source

Uniform

Extends:

CgUniform → Uniform

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

needsUpdate: boolean

Private Members
private

_cgp: *

private

_value: *

Method Summary

Public Methods
public

copyToBuffer(buff: *, pos: number)

public

getSizeBytes(): number

public

setGpuBuffer(b: *)

public

setValue2F(v: *)

public

setValue3F(v: *)

public

setValue4F(v: *)

public

setValueAny(v: *)

public
public

setValueF(v: *)

public

setValueM4(v: *)

public

setValueT(v: *)

public
public
public
public
public
public
public
public

Inherited Summary

From class CgUniform
public

comment: *

public

needsUpdate: boolean

public

set: *

public
public
private

_log: *

private

_name: *

private
private

_port: *

private

_port2: *

private

_port3: *

private

_port4: *

private
private

_shader: *

private
private
private

_type: *

private

_value: number

public

getName(): *

public
public

getType(): *

public

getValue(): *

public
public
public
public
public

Public Constructors

public constructor() source

Override:

CgUniform#constructor

Public Members

public gpuBuffer: * source

public needsUpdate: boolean source

Override:

CgUniform#needsUpdate

Private Members

private _cgp: * source

private _value: * source

Override:

CgUniform#_value

Public Methods

public copyToBuffer(buff: *, pos: number) source

Params:

NameTypeAttributeDescription
buff *
pos number
  • optional
  • default: 0

public getSizeBytes(): number source

Return:

number

public setGpuBuffer(b: *) source

Params:

NameTypeAttributeDescription
b *

public setValue2F(v: *) source

Params:

NameTypeAttributeDescription
v *

public setValue3F(v: *) source

Params:

NameTypeAttributeDescription
v *

public setValue4F(v: *) source

Params:

NameTypeAttributeDescription
v *

public setValueAny(v: *) source

Params:

NameTypeAttributeDescription
v *

public setValueArrayF(v: *) source

Params:

NameTypeAttributeDescription
v *

public setValueF(v: *) source

Params:

NameTypeAttributeDescription
v *

public setValueM4(v: *) source

Params:

NameTypeAttributeDescription
v *

public setValueT(v: *) source

Params:

NameTypeAttributeDescription
v *

public updateValue2F() source

public updateValue3F() source

public updateValue4F() source

public updateValueAny() source

public updateValueArrayF() source

public updateValueF() source

public updateValueM4(v: *) source

Params:

NameTypeAttributeDescription
v *

public updateValueT() source