samplers and image views
This commit is contained in:
@@ -8,11 +8,21 @@ typedef enum gnTextureType {
|
||||
GN_TEXTURE_2D
|
||||
} gnTextureType;
|
||||
|
||||
typedef enum gnTextureFilter {
|
||||
GN_FILTER_LINEAR, GN_FILTER_NEAREST
|
||||
} gnTextureFilter;
|
||||
|
||||
typedef enum gnTextureWrap {
|
||||
GN_REPEAT, GN_MIRRORED_REPEAT, GN_CLAMP_TO_EDGE, GN_CLAMP_TO_BORDER
|
||||
} gnTextureWrap;
|
||||
|
||||
typedef struct gnTextureInfo {
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
gnTextureType type;
|
||||
gnImageFormat format;
|
||||
gnTextureFilter minFilter, magFilter;
|
||||
gnTextureWrap wrapU, wrapV, wrapW;
|
||||
} gnTextureInfo;
|
||||
|
||||
#ifdef GN_REVEAL_IMPL
|
||||
|
Reference in New Issue
Block a user