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, ...])

The Buffer represents a contiguous piece of GPU memory.

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

The Texture represents structured 1D, 2D or 3D data on the GPU.