texture usage flags
This commit is contained in:
@@ -46,6 +46,10 @@ typedef struct gnScissor {
|
||||
gnUInt2 size;
|
||||
} gnScissor;
|
||||
|
||||
typedef struct gnMultisample {
|
||||
gnMultisampleCountFlags samples;
|
||||
} gnMultisample;
|
||||
|
||||
typedef enum gnFillMode {
|
||||
GN_FILL_MODE_FILL, GN_FILL_MODE_LINE, GN_FILL_MODE_POINT
|
||||
} gnFillMode;
|
||||
@@ -118,6 +122,8 @@ typedef struct gnGraphicsPipelineInfo {
|
||||
gnShaderInputLayout shaderInputLayout;
|
||||
|
||||
gnUniformLayout uniformLayout;
|
||||
|
||||
gnMultisample multisample;
|
||||
} gnGraphicsPipelineInfo;
|
||||
|
||||
#ifdef GN_REVEAL_IMPL
|
||||
|
@@ -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