texture usage flags

This commit is contained in:
Greg Wells
2025-07-05 18:22:11 -04:00
parent d567ce0beb
commit d54273b2cb
4 changed files with 31 additions and 6 deletions

View File

@@ -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

View File

@@ -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;