Cogs.Core
Public Types | List of all members
Cogs::Usage Struct Reference

Usage flags for buffers. More...

#include <Flags.h>

Public Types

enum  EUsage { Default = 0 , Static , Dynamic , Staging }
 Usage enumeration. More...
 

Detailed Description

Usage flags for buffers.

These are used as hints to the graphics device to know how and if the resource will be updated in the future.

Definition at line 20 of file Flags.h.

Member Enumeration Documentation

◆ EUsage

Usage enumeration.

Enumerator
Default 

Default usage.

Static 

Buffer will be loaded once and used to render many subsequent frames without any updates.

Dynamic 

Buffer will be loaded and modified with some frequency.

Staging 

Buffer will be used as target for copies from the graphics device, and source for copies to the graphics device.

Definition at line 23 of file Flags.h.


The documentation for this struct was generated from the following file: