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

Texture flags describing valid usage for a texture object. More...

#include <Flags.h>

Public Types

enum  ETextureFlags {
  Default = 0x0000 , Texture = 0x0001 , RenderTarget = 0x0002 , DepthBuffer = 0x0004 ,
  GenerateMipMaps = 0x0008 , CubeMap = 0x0010 , ReadWriteTexture =0x0020 , ExternalTexture = 0x0040 ,
  UsageReadStaging = 0x0080 , UsageWriteStaging = 0x0100 , NoDelete = 0x0200
}
 Texture flags enumeration. More...
 

Detailed Description

Texture flags describing valid usage for a texture object.

Definition at line 110 of file Flags.h.

Member Enumeration Documentation

◆ ETextureFlags

Texture flags enumeration.

Enumerator
Default 

Default usage, the texture can be loaded once and bound and sampled in shaders.

Texture 

Texture usage, see Default.

RenderTarget 

The texture can be used as a render target and drawn into.

DepthBuffer 

The texture can be used as a depth target and have depth buffer values written into.

GenerateMipMaps 

The texture supports automatic mipmap generation performed by the graphics device.

CubeMap 

The texture can be used as a cube map.

ReadWriteTexture 

The texture can be used as a read/write texture. Can be used to output data from compute shaders.

ExternalTexture 

The texture has been loaded externally, and the pointer to texture data is to be treated as a pointer to the loaded texture.

UsageReadStaging 

The texture is intended to be used as a staging texture.

NoDelete 

The ownership of the underlying texture resource is outside of cogs and cogs will not delete it.

Definition at line 113 of file Flags.h.


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