pygfx.resources

Containers for buffers and textures.

In pygfx, data is stored in buffers and textures. We collectively call these resources.

Resource()

Base class for Buffer and Texture.

Buffer([data, nbytes, nitems, format, usage])

A contiguous piece of GPU memory.

Texture([data, size, format, colorspace, ...])

Texture object containing structured 1D, 2D or 3D data.