pygfx.resources.Resource

class pygfx.resources.Resource

Bases: Trackable

Base class for Buffer and Texture.

property rev

The revision number (integer).

The number changes when update_range() is called. The number is monotonically increasing and globally unique (no two buffers/textures have the same rev). This makes that it can be used as hash for the data content.