Viewport.Usage/usage - multiple declarations

Function Viewport.usage

The rendering mode of viewport.

Viewport.Usage usage() nothrow @property @nogc;

void usage (
  long v
) nothrow @property @nogc;

Enum Viewport.Usage

enum Usage : int { ... }

Enum members

NameDescription
usage2d Allocates all buffers needed for drawing 2D scenes. This takes less VRAM than the 3D usage modes.
usage2dNoSampling Allocates buffers needed for 2D scenes without allocating a buffer for screen copy. Accordingly, you cannot read from the screen. Of the usage types, this requires the least VRAM.
usage3d Allocates full buffers for drawing 3D scenes and all 3D effects including buffers needed for 2D scenes and effects.
usage3dNoEffects Allocates buffers needed for drawing 3D scenes. But does not allocate buffers needed for reading from the screen and post-processing effects. Saves some VRAM.