texture usage flags
This commit is contained in:
@@ -17,9 +17,18 @@ typedef enum gnTextureWrap {
|
||||
GN_REPEAT, GN_MIRRORED_REPEAT, GN_CLAMP_TO_EDGE, GN_CLAMP_TO_BORDER
|
||||
} gnTextureWrap;
|
||||
|
||||
typedef enum gnTextureUsageFlags {
|
||||
GN_TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT = 1 << 0,
|
||||
GN_TEXTURE_USAGE_COLOR_ATTACHMENT = 1 << 1,
|
||||
GN_TEXTURE_USAGE_SAMPLED = 1 << 2,
|
||||
GN_TEXTURE_USAGE_WRITE_TARGET = 1 << 3,
|
||||
GN_TEXTURE_RESOLVE_ATTACHMENT = 1 << 4
|
||||
} gnTextureUsageFlags;
|
||||
|
||||
typedef struct gnTextureInfo {
|
||||
gnExtent3D extent;
|
||||
gnMultisampleCountFlags samples;
|
||||
gnTextureUsageFlags usage;
|
||||
uint32_t mipmapLevels;
|
||||
gnTextureType type;
|
||||
gnImageFormat format;
|
||||
|
Reference in New Issue
Block a user