Releases all cached primitive geometries from GPU memory and unregisters them from the VRAM tracker.
Active context.
Returns the shared unit plane geometry, instantiating it on the very first call.
Active context.
Span width along the X axis. Defaults to 1.0.
Span depth along the Z axis. Defaults to 1.0.
The cached or newly allocated Plane Geometry.
Returns the shared sphere geometry, instantiating it on the very first call.
Active context.
Radial size of the sphere. Defaults to 1.0.
Horizontal subdivision segments. Defaults to 16.
Vertical subdivision segments. Defaults to 16.
The cached or newly allocated Sphere Geometry.
PrimitivesFactory manages a per-context lazy-loaded cache of standard geometric shapes. Promotes high-performance vertex/index buffer resource sharing and avoids redundant GPU allocations.