pygfx.resources

Containers for buffers and textures.

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

Resource()

Resource base class.

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

A contiguous piece of GPU memory.

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

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