mirror of https://github.com/bkaradzic/bgfx
C99: Added function id enum.
This commit is contained in:
parent
0404f94745
commit
71e1dd6666
|
@ -420,7 +420,6 @@ typedef struct bgfx_callback_interface_s
|
|||
|
||||
} bgfx_callback_interface_t;
|
||||
|
||||
|
||||
/**/
|
||||
typedef struct bgfx_callback_vtbl_s
|
||||
{
|
||||
|
@ -436,6 +435,7 @@ typedef struct bgfx_callback_vtbl_s
|
|||
void (*capture_begin)(bgfx_callback_interface_t* _this, uint32_t _width, uint32_t _height, uint32_t _pitch, bgfx_texture_format_t _format, bool _yflip);
|
||||
void (*capture_end)(bgfx_callback_interface_t* _this);
|
||||
void (*capture_frame)(bgfx_callback_interface_t* _this, const void* _data, uint32_t _size);
|
||||
|
||||
} bgfx_callback_vtbl_t;
|
||||
|
||||
typedef struct bgfx_dynamic_index_buffer_handle_s { uint16_t idx; } bgfx_dynamic_index_buffer_handle_t;
|
||||
|
@ -3203,6 +3203,197 @@ BGFX_C_API void bgfx_discard();
|
|||
*/
|
||||
BGFX_C_API void bgfx_blit(bgfx_view_id_t _id, bgfx_texture_handle_t _dst, uint8_t _dstMip, uint16_t _dstX, uint16_t _dstY, uint16_t _dstZ, bgfx_texture_handle_t _src, uint8_t _srcMip, uint16_t _srcX, uint16_t _srcY, uint16_t _srcZ, uint16_t _width, uint16_t _height, uint16_t _depth);
|
||||
|
||||
/**/
|
||||
typedef enum bgfx_function_id
|
||||
{
|
||||
BGFX_FUNCTION_ID_ATTACHMENT_INIT,
|
||||
BGFX_FUNCTION_ID_VERTEX_DECL_BEGIN,
|
||||
BGFX_FUNCTION_ID_VERTEX_DECL_ADD,
|
||||
BGFX_FUNCTION_ID_VERTEX_DECL_DECODE,
|
||||
BGFX_FUNCTION_ID_VERTEX_DECL_HAS,
|
||||
BGFX_FUNCTION_ID_VERTEX_DECL_SKIP,
|
||||
BGFX_FUNCTION_ID_VERTEX_DECL_END,
|
||||
BGFX_FUNCTION_ID_VERTEX_PACK,
|
||||
BGFX_FUNCTION_ID_VERTEX_UNPACK,
|
||||
BGFX_FUNCTION_ID_VERTEX_CONVERT,
|
||||
BGFX_FUNCTION_ID_WELD_VERTICES,
|
||||
BGFX_FUNCTION_ID_TOPOLOGY_CONVERT,
|
||||
BGFX_FUNCTION_ID_TOPOLOGY_SORT_TRI_LIST,
|
||||
BGFX_FUNCTION_ID_GET_SUPPORTED_RENDERERS,
|
||||
BGFX_FUNCTION_ID_GET_RENDERER_NAME,
|
||||
BGFX_FUNCTION_ID_INIT_CTOR,
|
||||
BGFX_FUNCTION_ID_INIT,
|
||||
BGFX_FUNCTION_ID_SHUTDOWN,
|
||||
BGFX_FUNCTION_ID_RESET,
|
||||
BGFX_FUNCTION_ID_FRAME,
|
||||
BGFX_FUNCTION_ID_GET_RENDERER_TYPE,
|
||||
BGFX_FUNCTION_ID_GET_CAPS,
|
||||
BGFX_FUNCTION_ID_GET_STATS,
|
||||
BGFX_FUNCTION_ID_ALLOC,
|
||||
BGFX_FUNCTION_ID_COPY,
|
||||
BGFX_FUNCTION_ID_MAKE_REF,
|
||||
BGFX_FUNCTION_ID_MAKE_REF_RELEASE,
|
||||
BGFX_FUNCTION_ID_SET_DEBUG,
|
||||
BGFX_FUNCTION_ID_DBG_TEXT_CLEAR,
|
||||
BGFX_FUNCTION_ID_DBG_TEXT_PRINTF,
|
||||
BGFX_FUNCTION_ID_DBG_TEXT_VPRINTF,
|
||||
BGFX_FUNCTION_ID_DBG_TEXT_IMAGE,
|
||||
BGFX_FUNCTION_ID_CREATE_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_INDEX_BUFFER_NAME,
|
||||
BGFX_FUNCTION_ID_DESTROY_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_CREATE_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_VERTEX_BUFFER_NAME,
|
||||
BGFX_FUNCTION_ID_DESTROY_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_CREATE_DYNAMIC_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_CREATE_DYNAMIC_INDEX_BUFFER_MEM,
|
||||
BGFX_FUNCTION_ID_UPDATE_DYNAMIC_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_DESTROY_DYNAMIC_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_CREATE_DYNAMIC_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_CREATE_DYNAMIC_VERTEX_BUFFER_MEM,
|
||||
BGFX_FUNCTION_ID_UPDATE_DYNAMIC_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_DESTROY_DYNAMIC_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_GET_AVAIL_TRANSIENT_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_GET_AVAIL_TRANSIENT_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_GET_AVAIL_INSTANCE_DATA_BUFFER,
|
||||
BGFX_FUNCTION_ID_ALLOC_TRANSIENT_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ALLOC_TRANSIENT_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ALLOC_TRANSIENT_BUFFERS,
|
||||
BGFX_FUNCTION_ID_ALLOC_INSTANCE_DATA_BUFFER,
|
||||
BGFX_FUNCTION_ID_CREATE_INDIRECT_BUFFER,
|
||||
BGFX_FUNCTION_ID_DESTROY_INDIRECT_BUFFER,
|
||||
BGFX_FUNCTION_ID_CREATE_SHADER,
|
||||
BGFX_FUNCTION_ID_GET_SHADER_UNIFORMS,
|
||||
BGFX_FUNCTION_ID_SET_SHADER_NAME,
|
||||
BGFX_FUNCTION_ID_DESTROY_SHADER,
|
||||
BGFX_FUNCTION_ID_CREATE_PROGRAM,
|
||||
BGFX_FUNCTION_ID_CREATE_COMPUTE_PROGRAM,
|
||||
BGFX_FUNCTION_ID_DESTROY_PROGRAM,
|
||||
BGFX_FUNCTION_ID_IS_TEXTURE_VALID,
|
||||
BGFX_FUNCTION_ID_CALC_TEXTURE_SIZE,
|
||||
BGFX_FUNCTION_ID_CREATE_TEXTURE,
|
||||
BGFX_FUNCTION_ID_CREATE_TEXTURE_2D,
|
||||
BGFX_FUNCTION_ID_CREATE_TEXTURE_2D_SCALED,
|
||||
BGFX_FUNCTION_ID_CREATE_TEXTURE_3D,
|
||||
BGFX_FUNCTION_ID_CREATE_TEXTURE_CUBE,
|
||||
BGFX_FUNCTION_ID_UPDATE_TEXTURE_2D,
|
||||
BGFX_FUNCTION_ID_UPDATE_TEXTURE_3D,
|
||||
BGFX_FUNCTION_ID_UPDATE_TEXTURE_CUBE,
|
||||
BGFX_FUNCTION_ID_READ_TEXTURE,
|
||||
BGFX_FUNCTION_ID_SET_TEXTURE_NAME,
|
||||
BGFX_FUNCTION_ID_GET_DIRECT_ACCESS_PTR,
|
||||
BGFX_FUNCTION_ID_DESTROY_TEXTURE,
|
||||
BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER,
|
||||
BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER_SCALED,
|
||||
BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER_FROM_HANDLES,
|
||||
BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER_FROM_ATTACHMENT,
|
||||
BGFX_FUNCTION_ID_CREATE_FRAME_BUFFER_FROM_NWH,
|
||||
BGFX_FUNCTION_ID_SET_FRAME_BUFFER_NAME,
|
||||
BGFX_FUNCTION_ID_GET_TEXTURE,
|
||||
BGFX_FUNCTION_ID_DESTROY_FRAME_BUFFER,
|
||||
BGFX_FUNCTION_ID_CREATE_UNIFORM,
|
||||
BGFX_FUNCTION_ID_GET_UNIFORM_INFO,
|
||||
BGFX_FUNCTION_ID_DESTROY_UNIFORM,
|
||||
BGFX_FUNCTION_ID_CREATE_OCCLUSION_QUERY,
|
||||
BGFX_FUNCTION_ID_GET_RESULT,
|
||||
BGFX_FUNCTION_ID_DESTROY_OCCLUSION_QUERY,
|
||||
BGFX_FUNCTION_ID_SET_PALETTE_COLOR,
|
||||
BGFX_FUNCTION_ID_SET_PALETTE_COLOR_RGBA8,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_NAME,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_RECT,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_RECT_RATIO,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_SCISSOR,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_CLEAR,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_CLEAR_MRT,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_MODE,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_FRAME_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_TRANSFORM,
|
||||
BGFX_FUNCTION_ID_SET_VIEW_ORDER,
|
||||
BGFX_FUNCTION_ID_ENCODER_BEGIN,
|
||||
BGFX_FUNCTION_ID_ENCODER_END,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_MARKER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_STATE,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_CONDITION,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_STENCIL,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_SCISSOR,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_SCISSOR_CACHED,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_TRANSFORM,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_TRANSFORM_CACHED,
|
||||
BGFX_FUNCTION_ID_ENCODER_ALLOC_TRANSFORM,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_UNIFORM,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_DYNAMIC_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_TRANSIENT_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_DYNAMIC_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_TRANSIENT_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_VERTEX_COUNT,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_INSTANCE_DATA_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_INSTANCE_DATA_FROM_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_INSTANCE_DATA_FROM_DYNAMIC_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_INSTANCE_COUNT,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_TEXTURE,
|
||||
BGFX_FUNCTION_ID_ENCODER_TOUCH,
|
||||
BGFX_FUNCTION_ID_ENCODER_SUBMIT,
|
||||
BGFX_FUNCTION_ID_ENCODER_SUBMIT_OCCLUSION_QUERY,
|
||||
BGFX_FUNCTION_ID_ENCODER_SUBMIT_INDIRECT,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_DYNAMIC_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_DYNAMIC_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_COMPUTE_INDIRECT_BUFFER,
|
||||
BGFX_FUNCTION_ID_ENCODER_SET_IMAGE,
|
||||
BGFX_FUNCTION_ID_ENCODER_DISPATCH,
|
||||
BGFX_FUNCTION_ID_ENCODER_DISPATCH_INDIRECT,
|
||||
BGFX_FUNCTION_ID_ENCODER_DISCARD,
|
||||
BGFX_FUNCTION_ID_ENCODER_BLIT,
|
||||
BGFX_FUNCTION_ID_REQUEST_SCREEN_SHOT,
|
||||
BGFX_FUNCTION_ID_RENDER_FRAME,
|
||||
BGFX_FUNCTION_ID_SET_PLATFORM_DATA,
|
||||
BGFX_FUNCTION_ID_GET_INTERNAL_DATA,
|
||||
BGFX_FUNCTION_ID_OVERRIDE_INTERNAL_TEXTURE_PTR,
|
||||
BGFX_FUNCTION_ID_OVERRIDE_INTERNAL_TEXTURE,
|
||||
BGFX_FUNCTION_ID_SET_MARKER,
|
||||
BGFX_FUNCTION_ID_SET_STATE,
|
||||
BGFX_FUNCTION_ID_SET_CONDITION,
|
||||
BGFX_FUNCTION_ID_SET_STENCIL,
|
||||
BGFX_FUNCTION_ID_SET_SCISSOR,
|
||||
BGFX_FUNCTION_ID_SET_SCISSOR_CACHED,
|
||||
BGFX_FUNCTION_ID_SET_TRANSFORM,
|
||||
BGFX_FUNCTION_ID_SET_TRANSFORM_CACHED,
|
||||
BGFX_FUNCTION_ID_ALLOC_TRANSFORM,
|
||||
BGFX_FUNCTION_ID_SET_UNIFORM,
|
||||
BGFX_FUNCTION_ID_SET_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_DYNAMIC_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_TRANSIENT_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_DYNAMIC_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_TRANSIENT_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_VERTEX_COUNT,
|
||||
BGFX_FUNCTION_ID_SET_INSTANCE_DATA_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_INSTANCE_DATA_FROM_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_INSTANCE_DATA_FROM_DYNAMIC_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_INSTANCE_COUNT,
|
||||
BGFX_FUNCTION_ID_SET_TEXTURE,
|
||||
BGFX_FUNCTION_ID_TOUCH,
|
||||
BGFX_FUNCTION_ID_SUBMIT,
|
||||
BGFX_FUNCTION_ID_SUBMIT_OCCLUSION_QUERY,
|
||||
BGFX_FUNCTION_ID_SUBMIT_INDIRECT,
|
||||
BGFX_FUNCTION_ID_SET_COMPUTE_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_COMPUTE_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_COMPUTE_DYNAMIC_INDEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_COMPUTE_DYNAMIC_VERTEX_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_COMPUTE_INDIRECT_BUFFER,
|
||||
BGFX_FUNCTION_ID_SET_IMAGE,
|
||||
BGFX_FUNCTION_ID_DISPATCH,
|
||||
BGFX_FUNCTION_ID_DISPATCH_INDIRECT,
|
||||
BGFX_FUNCTION_ID_DISCARD,
|
||||
BGFX_FUNCTION_ID_BLIT,
|
||||
|
||||
BGFX_FUNCTION_ID_COUNT
|
||||
|
||||
} bgfx_function_id_t;
|
||||
|
||||
/**/
|
||||
struct bgfx_interface_vtbl
|
||||
{
|
||||
void (*attachment_init)(bgfx_attachment_t* _this, bgfx_texture_handle_t _handle, bgfx_access_t _access, uint16_t _layer, uint16_t _mip, uint8_t _resolve);
|
||||
|
|
|
@ -86,7 +86,6 @@ typedef struct bgfx_callback_interface_s
|
|||
|
||||
} bgfx_callback_interface_t;
|
||||
|
||||
|
||||
/**/
|
||||
typedef struct bgfx_callback_vtbl_s
|
||||
{
|
||||
|
@ -102,6 +101,7 @@ typedef struct bgfx_callback_vtbl_s
|
|||
void (*capture_begin)(bgfx_callback_interface_t* _this, uint32_t _width, uint32_t _height, uint32_t _pitch, bgfx_texture_format_t _format, bool _yflip);
|
||||
void (*capture_end)(bgfx_callback_interface_t* _this);
|
||||
void (*capture_frame)(bgfx_callback_interface_t* _this, const void* _data, uint32_t _size);
|
||||
|
||||
} bgfx_callback_vtbl_t;
|
||||
|
||||
$chandles
|
||||
|
@ -112,6 +112,16 @@ $cstructs
|
|||
|
||||
$c99decl
|
||||
|
||||
/**/
|
||||
typedef enum bgfx_function_id
|
||||
{
|
||||
$c99_functionid
|
||||
|
||||
BGFX_FUNCTION_ID_COUNT
|
||||
|
||||
} bgfx_function_id_t;
|
||||
|
||||
/**/
|
||||
struct bgfx_interface_vtbl
|
||||
{
|
||||
$interface_struct
|
||||
|
|
Loading…
Reference in New Issue