LogoPixi’VN
pixi-jsInterfaces

Interface: BindResource

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/shader/BindResource.d.ts:7

an interface that allows a resource to be bound to the gpu in a bind group

Advanced

Properties

_touched

> _touched: number

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/shader/BindResource.d.ts:18

Methods

off()?

> optional off(event, listenerFunction, listener): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/shader/BindResource.d.ts:33

todo

Parameters

event

"change"

listenerFunction

(resource) => void

listener

BindGroup

Returns

void


on()?

> optional on(event, listenerFunction, listener): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/shader/BindResource.d.ts:31

event dispatch whenever the underlying resource needs to change this could be a texture or buffer that has been resized. This is important as it allows the renderer to know that it needs to rebind the resource

Parameters

event

"change"

listenerFunction

(resource) => void

listener

BindGroup

Returns

void