Wasabi
|
Typedefs | |
typedef struct W_SHADER_VARIABLE_INFO | W_SHADER_VARIABLE_INFO |
typedef struct W_BOUND_RESOURCE | W_BOUND_RESOURCE |
typedef struct W_INPUT_LAYOUT | W_INPUT_LAYOUT |
typedef struct W_SHADER_DESC | W_SHADER_DESC |
Enumerations | |
enum | W_SHADER_TYPE : uint32_t { W_VERTEX_SHADER = VK_SHADER_STAGE_VERTEX_BIT, W_FRAGMENT_SHADER = VK_SHADER_STAGE_FRAGMENT_BIT, W_PIXEL_SHADER = VK_SHADER_STAGE_FRAGMENT_BIT, W_GEOMETRY_SHADER = VK_SHADER_STAGE_GEOMETRY_BIT } |
enum | W_SHADER_VARIABLE_TYPE : uint8_t { W_TYPE_FLOAT = 0, W_TYPE_INT = 1, W_TYPE_UINT = 2, W_TYPE_HALF = 3, W_TYPE_STRUCT = 4, W_TYPE_VEC_2 = 5, W_TYPE_VEC_3 = 6, W_TYPE_VEC_4 = 7, W_TYPE_MAT4X4 = 8 } |
enum | W_SHADER_BOUND_RESOURCE_TYPE : uint8_t { W_TYPE_UBO = 0, W_TYPE_TEXTURE = 1, W_TYPE_PUSH_CONSTANT = 2 } |
enum | W_VERTEX_INPUT_RATE : uint8_t { W_INPUT_RATE_PER_VERTEX = 0, W_INPUT_RATE_PER_INSTANCE = 1 } |
enum | W_MOUSEBUTTON : uint8_t { MOUSE_LEFT = 0, MOUSE_RIGHT = 1, MOUSE_MIDDLE = 2 } |
enum | W_MOUSEPOSTYPE : uint8_t { MOUSEPOS_DESKTOP = 0, MOUSEPOS_WINDOW = 1, MOUSEPOS_VIEWPORT = 2 } |
typedef struct W_BOUND_RESOURCE W_BOUND_RESOURCE |
Description of a resource bound to a shader. A resource can be anything listed by W_SHADER_BOUND_RESOURCE_TYPE. An example of a bound resource is a UBO.
typedef struct W_INPUT_LAYOUT W_INPUT_LAYOUT |
Description of an input layout for a shader. An input layout describes how a vertex buffer should look like to be compatible with a shader. A vertex buffer bound to the pipeline has to have the same layout as described by the attributes per instance or per vertex, depending on the rate specified.
typedef struct W_SHADER_DESC W_SHADER_DESC |
Description of a shader to be bound to an effect.
typedef struct W_SHADER_VARIABLE_INFO W_SHADER_VARIABLE_INFO |
Description of a shader variable in a UBO or vertex attribute.
enum W_MOUSEBUTTON : uint8_t |
Describes a mouse click button.
enum W_MOUSEPOSTYPE : uint8_t |
Describes the coordinate system for a mouse position.
enum W_SHADER_BOUND_RESOURCE_TYPE : uint8_t |
enum W_SHADER_TYPE : uint32_t |
enum W_SHADER_VARIABLE_TYPE : uint8_t |
enum W_VERTEX_INPUT_RATE : uint8_t |
Rate at which a vertex buffer is passed to the vertex shader