FrameTexture
Defined in: packages/sigma/src/rendering/frame-texture.ts:26
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FrameTexture(
gl,options):FrameTexture
Defined in: packages/sigma/src/rendering/frame-texture.ts:36
Parameters
Section titled “Parameters”WebGL2RenderingContext
options
Section titled “options”Returns
Section titled “Returns”FrameTexture
Methods
Section titled “Methods”bind()
Section titled “bind()”bind(
textureUnit):void
Defined in: packages/sigma/src/rendering/frame-texture.ts:122
Binds the texture to a unit for sampling by consumers.
Parameters
Section titled “Parameters”textureUnit
Section titled “textureUnit”number
Returns
Section titled “Returns”void
bindAsRenderTarget()
Section titled “bindAsRenderTarget()”bindAsRenderTarget():
void
Defined in: packages/sigma/src/rendering/frame-texture.ts:115
Binds the texture as the render target and sets the viewport to its size, ready for the frame-pass to scatter values into it. The caller restores the default framebuffer/viewport afterward.
Returns
Section titled “Returns”void
ensureCapacity()
Section titled “ensureCapacity()”ensureCapacity(
capacity):void
Defined in: packages/sigma/src/rendering/frame-texture.ts:96
Grows the texture so capacity items are addressable, keeping it sized
against the matching data texture. A no-op once large enough.
Parameters
Section titled “Parameters”capacity
Section titled “capacity”number
Returns
Section titled “Returns”void
getTexture()
Section titled “getTexture()”getTexture():
WebGLTexture|null
Defined in: packages/sigma/src/rendering/frame-texture.ts:128
Returns
Section titled “Returns”WebGLTexture | null
getTextureHeight()
Section titled “getTextureHeight()”getTextureHeight():
number
Defined in: packages/sigma/src/rendering/frame-texture.ts:136
Returns
Section titled “Returns”number
getTextureWidth()
Section titled “getTextureWidth()”getTextureWidth():
number
Defined in: packages/sigma/src/rendering/frame-texture.ts:132
Returns
Section titled “Returns”number
kill()
Section titled “kill()”kill():
void
Defined in: packages/sigma/src/rendering/frame-texture.ts:147
Returns
Section titled “Returns”void
restore()
Section titled “restore()”restore():
void
Defined in: packages/sigma/src/rendering/frame-texture.ts:141
Recreates texture and framebuffer after a context loss, for the next frame-pass to refill.
Returns
Section titled “Returns”void