LogoPixi’VN
pixi-jsEnumerations

Enumeration: BufferUsage

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:7

Buffer usage flags. they can be combined using the bitwise OR operator eg : BufferUsage.VERTEX | BufferUsage.INDEX

Advanced

Enumeration Members

COPY_DST

> COPY_DST: 8

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:28

The buffer can be used as the destination of a copy or write operation. (Examples: as the destination argument of a copyBufferToBuffer() or copyTextureToBuffer() call, or as the target of a writeBuffer() call.)


COPY_SRC

> COPY_SRC: 4

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:22

The buffer can be used as the source of a copy operation. (Examples: as the source argument of a copyBufferToBuffer() or copyBufferToTexture() call.)


INDEX

> INDEX: 16

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:30

The buffer can be used as an index buffer. (Example: passed to setIndexBuffer().)


INDIRECT

> INDIRECT: 256

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:47

The buffer can be used as to store indirect command arguments. (Examples: as the indirectBuffer argument of a drawIndirect() or dispatchWorkgroupsIndirect() call.)


MAP_READ

> MAP_READ: 1

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:12

The buffer can be mapped for reading. (Example: calling mapAsync() with GPUMapMode.READ) May only be combined with COPY_DST.


MAP_WRITE

> MAP_WRITE: 2

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:17

The buffer can be mapped for writing. (Example: calling mapAsync() with GPUMapMode.WRITE) May only be combined with COPY_SRC.


QUERY_RESOLVE

> QUERY_RESOLVE: 512

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:52

The buffer can be used to capture query results. (Example: as the destination argument of a resolveQuerySet() call.)


STATIC

> STATIC: 1024

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:54

the buffer will not be updated frequently


STORAGE

> STORAGE: 128

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:42

The buffer can be used as a storage buffer. (Example: as a bind group entry for a GPUBufferBindingLayout with a buffer.type of "storage" or "read-only-storage".)


UNIFORM

> UNIFORM: 64

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:37

The buffer can be used as a uniform buffer. (Example: as a bind group entry for a GPUBufferBindingLayout with a buffer.type of "uniform".)


VERTEX

> VERTEX: 32

Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.d.ts:32

The buffer can be used as a vertex buffer. (Example: passed to setVertexBuffer().)