Skip to content

Instantly share code, notes, and snippets.

@raizam
Created March 7, 2019 20:33
Show Gist options
  • Save raizam/c66567c24525e5ed3f3d59409a13f4a2 to your computer and use it in GitHub Desktop.
Save raizam/c66567c24525e5ed3f3d59409a13f4a2 to your computer and use it in GitHub Desktop.
typedef struct { bgfx_vertex_decl_t* _this; bgfx_renderer_type_t _renderer; } bgfx_cmd_arg_vertex_decl_begin_t;
typedef struct { bgfx_vertex_decl_t* _this; bgfx_attrib_t _attrib; uint8_t _num; bgfx_attrib_type_t _type; bool _normalized; bool _asInt; } bgfx_cmd_arg_vertex_decl_add_t;
typedef struct { const bgfx_vertex_decl_t* _this; bgfx_attrib_t _attrib; uint8_t * _num; bgfx_attrib_type_t * _type; bool * _normalized; bool * _asInt; } bgfx_cmd_arg_vertex_decl_decode_t;
typedef struct { const bgfx_vertex_decl_t* _this; bgfx_attrib_t _attrib; } bgfx_cmd_arg_vertex_decl_has_t;
typedef struct { bgfx_vertex_decl_t* _this; uint8_t _num; } bgfx_cmd_arg_vertex_decl_skip_t;
typedef struct { bgfx_vertex_decl_t* _this; } bgfx_cmd_arg_vertex_decl_end_t;
typedef struct { const float * _input; bool _inputNormalized; bgfx_attrib_t _attr; const bgfx_vertex_decl_t * _decl; void * _data; uint32_t _index; } bgfx_cmd_arg_vertex_pack_t;
typedef struct { float * _output; bgfx_attrib_t _attr; const bgfx_vertex_decl_t * _decl; const void * _data; uint32_t _index; } bgfx_cmd_arg_vertex_unpack_t;
typedef struct { const bgfx_vertex_decl_t * _dstDecl; void * _dstData; const bgfx_vertex_decl_t * _srcDecl; const void * _srcData; uint32_t _num; } bgfx_cmd_arg_vertex_convert_t;
typedef struct { uint16_t * _output; const bgfx_vertex_decl_t * _decl; const void * _data; uint16_t _num; float _epsilon; } bgfx_cmd_arg_weld_vertices_t;
typedef struct { bgfx_topology_convert_t _conversion; void * _dst; uint32_t _dstSize; const void * _indices; uint32_t _numIndices; bool _index32; } bgfx_cmd_arg_topology_convert_t;
typedef struct { bgfx_topology_sort_t _sort; void * _dst; uint32_t _dstSize; const float * _dir; const float * _pos; const void * _vertices; uint32_t _stride; const void * _indices; uint32_t _numIndices; bool _index32; } bgfx_cmd_arg_topology_sort_tri_list_t;
typedef struct { uint8_t _max; bgfx_renderer_type_t * _enum; } bgfx_cmd_arg_get_supported_renderers_t;
typedef struct { bgfx_renderer_type_t _type; } bgfx_cmd_arg_get_renderer_name_t;
typedef struct { bgfx_init_t * _init; } bgfx_cmd_arg_init_ctor_t;
typedef struct { const bgfx_init_t * _init; } bgfx_cmd_arg_init_t;
typedef struct { ; } bgfx_cmd_arg_shutdown_t;
typedef struct { uint32_t _width; uint32_t _height; uint32_t _flags; bgfx_texture_format_t _format; } bgfx_cmd_arg_reset_t;
typedef struct { bool _capture; } bgfx_cmd_arg_frame_t;
typedef struct { ; } bgfx_cmd_arg_get_renderer_type_t;
typedef struct { ; } bgfx_cmd_arg_get_caps_t;
typedef struct { ; } bgfx_cmd_arg_get_stats_t;
typedef struct { uint32_t _size; } bgfx_cmd_arg_alloc_t;
typedef struct { const void * _data; uint32_t _size; } bgfx_cmd_arg_copy_t;
typedef struct { const void * _data; uint32_t _size; } bgfx_cmd_arg_make_ref_t;
typedef struct { const void * _data; uint32_t _size; bgfx_release_fn_t _releaseFn; void * _userData; } bgfx_cmd_arg_make_ref_release_t;
typedef struct { uint32_t _debug; } bgfx_cmd_arg_set_debug_t;
typedef struct { uint8_t _attr; bool _small; } bgfx_cmd_arg_dbg_text_clear_t;
typedef struct { uint16_t _x; uint16_t _y; uint8_t _attr; const char * _format; ... ; } bgfx_cmd_arg_dbg_text_printf_t;
typedef struct { uint16_t _x; uint16_t _y; uint8_t _attr; const char * _format; va_list _argList; } bgfx_cmd_arg_dbg_text_vprintf_t;
typedef struct { uint16_t _x; uint16_t _y; uint16_t _width; uint16_t _height; const void * _data; uint16_t _pitch; } bgfx_cmd_arg_dbg_text_image_t;
typedef struct { const bgfx_memory_t * _mem; uint16_t _flags; } bgfx_cmd_arg_create_index_buffer_t;
typedef struct { bgfx_index_buffer_handle_t _handle; const char * _name; int32_t _len; } bgfx_cmd_arg_set_index_buffer_name_t;
typedef struct { bgfx_index_buffer_handle_t _handle; } bgfx_cmd_arg_destroy_index_buffer_t;
typedef struct { const bgfx_memory_t * _mem; const bgfx_vertex_decl_t * _decl; uint16_t _flags; } bgfx_cmd_arg_create_vertex_buffer_t;
typedef struct { bgfx_vertex_buffer_handle_t _handle; const char * _name; int32_t _len; } bgfx_cmd_arg_set_vertex_buffer_name_t;
typedef struct { bgfx_vertex_buffer_handle_t _handle; } bgfx_cmd_arg_destroy_vertex_buffer_t;
typedef struct { uint32_t _num; uint16_t _flags; } bgfx_cmd_arg_create_dynamic_index_buffer_t;
typedef struct { const bgfx_memory_t * _mem; uint16_t _flags; } bgfx_cmd_arg_create_dynamic_index_buffer_mem_t;
typedef struct { bgfx_dynamic_index_buffer_handle_t _handle; uint32_t _startIndex; const bgfx_memory_t * _mem; } bgfx_cmd_arg_update_dynamic_index_buffer_t;
typedef struct { bgfx_dynamic_index_buffer_handle_t _handle; } bgfx_cmd_arg_destroy_dynamic_index_buffer_t;
typedef struct { uint32_t _num; const bgfx_vertex_decl_t * _decl; uint16_t _flags; } bgfx_cmd_arg_create_dynamic_vertex_buffer_t;
typedef struct { const bgfx_memory_t * _mem; const bgfx_vertex_decl_t * _decl; uint16_t _flags; } bgfx_cmd_arg_create_dynamic_vertex_buffer_mem_t;
typedef struct { bgfx_dynamic_vertex_buffer_handle_t _handle; uint32_t _startVertex; const bgfx_memory_t * _mem; } bgfx_cmd_arg_update_dynamic_vertex_buffer_t;
typedef struct { bgfx_dynamic_vertex_buffer_handle_t _handle; } bgfx_cmd_arg_destroy_dynamic_vertex_buffer_t;
typedef struct { uint32_t _num; } bgfx_cmd_arg_get_avail_transient_index_buffer_t;
typedef struct { uint32_t _num; const bgfx_vertex_decl_t * _decl; } bgfx_cmd_arg_get_avail_transient_vertex_buffer_t;
typedef struct { uint32_t _num; uint16_t _stride; } bgfx_cmd_arg_get_avail_instance_data_buffer_t;
typedef struct { bgfx_transient_index_buffer_t * _tib; uint32_t _num; } bgfx_cmd_arg_alloc_transient_index_buffer_t;
typedef struct { bgfx_transient_vertex_buffer_t * _tvb; uint32_t _num; const bgfx_vertex_decl_t * _decl; } bgfx_cmd_arg_alloc_transient_vertex_buffer_t;
typedef struct { bgfx_transient_vertex_buffer_t * _tvb; const bgfx_vertex_decl_t * _decl; uint32_t _numVertices; bgfx_transient_index_buffer_t * _tib; uint32_t _numIndices; } bgfx_cmd_arg_alloc_transient_buffers_t;
typedef struct { bgfx_instance_data_buffer_t * _idb; uint32_t _num; uint16_t _stride; } bgfx_cmd_arg_alloc_instance_data_buffer_t;
typedef struct { uint32_t _num; } bgfx_cmd_arg_create_indirect_buffer_t;
typedef struct { bgfx_indirect_buffer_handle_t _handle; } bgfx_cmd_arg_destroy_indirect_buffer_t;
typedef struct { const bgfx_memory_t * _mem; } bgfx_cmd_arg_create_shader_t;
typedef struct { bgfx_shader_handle_t _handle; bgfx_uniform_handle_t * _uniforms; uint16_t _max; } bgfx_cmd_arg_get_shader_uniforms_t;
typedef struct { bgfx_shader_handle_t _handle; const char * _name; int32_t _len; } bgfx_cmd_arg_set_shader_name_t;
typedef struct { bgfx_shader_handle_t _handle; } bgfx_cmd_arg_destroy_shader_t;
typedef struct { bgfx_shader_handle_t _vsh; bgfx_shader_handle_t _fsh; bool _destroyShaders; } bgfx_cmd_arg_create_program_t;
typedef struct { bgfx_shader_handle_t _csh; bool _destroyShaders; } bgfx_cmd_arg_create_compute_program_t;
typedef struct { bgfx_program_handle_t _handle; } bgfx_cmd_arg_destroy_program_t;
typedef struct { uint16_t _depth; bool _cubeMap; uint16_t _numLayers; bgfx_texture_format_t _format; uint64_t _flags; } bgfx_cmd_arg_is_texture_valid_t;
typedef struct { bgfx_texture_info_t * _info; uint16_t _width; uint16_t _height; uint16_t _depth; bool _cubeMap; bool _hasMips; uint16_t _numLayers; bgfx_texture_format_t _format; } bgfx_cmd_arg_calc_texture_size_t;
typedef struct { const bgfx_memory_t * _mem; uint64_t _flags; uint8_t _skip; bgfx_texture_info_t * _info; } bgfx_cmd_arg_create_texture_t;
typedef struct { uint16_t _width; uint16_t _height; bool _hasMips; uint16_t _numLayers; bgfx_texture_format_t _format; uint64_t _flags; const bgfx_memory_t * _mem; } bgfx_cmd_arg_create_texture_2d_t;
typedef struct { bgfx_backbuffer_ratio_t _ratio; bool _hasMips; uint16_t _numLayers; bgfx_texture_format_t _format; uint64_t _flags; } bgfx_cmd_arg_create_texture_2d_scaled_t;
typedef struct { uint16_t _width; uint16_t _height; uint16_t _depth; bool _hasMips; bgfx_texture_format_t _format; uint64_t _flags; const bgfx_memory_t * _mem; } bgfx_cmd_arg_create_texture_3d_t;
typedef struct { uint16_t _size; bool _hasMips; uint16_t _numLayers; bgfx_texture_format_t _format; uint64_t _flags; const bgfx_memory_t * _mem; } bgfx_cmd_arg_create_texture_cube_t;
typedef struct { bgfx_texture_handle_t _handle; uint16_t _layer; uint8_t _mip; uint16_t _x; uint16_t _y; uint16_t _width; uint16_t _height; const bgfx_memory_t * _mem; uint16_t _pitch; } bgfx_cmd_arg_update_texture_2d_t;
typedef struct { bgfx_texture_handle_t _handle; uint8_t _mip; uint16_t _x; uint16_t _y; uint16_t _z; uint16_t _width; uint16_t _height; uint16_t _depth; const bgfx_memory_t * _mem; } bgfx_cmd_arg_update_texture_3d_t;
typedef struct { bgfx_texture_handle_t _handle; uint16_t _layer; uint8_t _side; uint8_t _mip; uint16_t _x; uint16_t _y; uint16_t _width; uint16_t _height; const bgfx_memory_t * _mem; uint16_t _pitch; } bgfx_cmd_arg_update_texture_cube_t;
typedef struct { bgfx_texture_handle_t _handle; void * _data; uint8_t _mip; } bgfx_cmd_arg_read_texture_t;
typedef struct { bgfx_texture_handle_t _handle; const char * _name; int32_t _len; } bgfx_cmd_arg_set_texture_name_t;
typedef struct { bgfx_texture_handle_t _handle; } bgfx_cmd_arg_get_direct_access_ptr_t;
typedef struct { bgfx_texture_handle_t _handle; } bgfx_cmd_arg_destroy_texture_t;
typedef struct { uint16_t _width; uint16_t _height; bgfx_texture_format_t _format; uint64_t _textureFlags; } bgfx_cmd_arg_create_frame_buffer_t;
typedef struct { bgfx_backbuffer_ratio_t _ratio; bgfx_texture_format_t _format; uint64_t _textureFlags; } bgfx_cmd_arg_create_frame_buffer_scaled_t;
typedef struct { uint8_t _num; const bgfx_texture_handle_t * _handles; bool _destroyTexture; } bgfx_cmd_arg_create_frame_buffer_from_handles_t;
typedef struct { uint8_t _num; const bgfx_attachment_t * _handles; bool _destroyTexture; } bgfx_cmd_arg_create_frame_buffer_from_attachment_t;
typedef struct { void * _nwh; uint16_t _width; uint16_t _height; bgfx_texture_format_t _format; bgfx_texture_format_t _depthFormat; } bgfx_cmd_arg_create_frame_buffer_from_nwh_t;
typedef struct { bgfx_frame_buffer_handle_t _handle; const char * _name; int32_t _len; } bgfx_cmd_arg_set_frame_buffer_name_t;
typedef struct { bgfx_frame_buffer_handle_t _handle; uint8_t _attachment; } bgfx_cmd_arg_get_texture_t;
typedef struct { bgfx_frame_buffer_handle_t _handle; } bgfx_cmd_arg_destroy_frame_buffer_t;
typedef struct { const char * _name; bgfx_uniform_type_t _type; uint16_t _num; } bgfx_cmd_arg_create_uniform_t;
typedef struct { bgfx_uniform_handle_t _handle; bgfx_uniform_info_t * _info; } bgfx_cmd_arg_get_uniform_info_t;
typedef struct { bgfx_uniform_handle_t _handle; } bgfx_cmd_arg_destroy_uniform_t;
typedef struct { ; } bgfx_cmd_arg_create_occlusion_query_t;
typedef struct { bgfx_occlusion_query_handle_t _handle; int32_t * _result; } bgfx_cmd_arg_get_result_t;
typedef struct { bgfx_occlusion_query_handle_t _handle; } bgfx_cmd_arg_destroy_occlusion_query_t;
typedef struct { uint8_t _index; const float * _rgba; } bgfx_cmd_arg_set_palette_color_t;
typedef struct { bgfx_view_id_t _id; const char * _name; } bgfx_cmd_arg_set_view_name_t;
typedef struct { bgfx_view_id_t _id; uint16_t _x; uint16_t _y; uint16_t _width; uint16_t _height; } bgfx_cmd_arg_set_view_rect_t;
typedef struct { bgfx_view_id_t _id; uint16_t _x; uint16_t _y; bgfx_backbuffer_ratio_t _ratio; } bgfx_cmd_arg_set_view_rect_ratio_t;
typedef struct { bgfx_view_id_t _id; uint16_t _x; uint16_t _y; uint16_t _width; uint16_t _height; } bgfx_cmd_arg_set_view_scissor_t;
typedef struct { bgfx_view_id_t _id; uint16_t _flags; uint32_t _rgba; float _depth; uint8_t _stencil; } bgfx_cmd_arg_set_view_clear_t;
typedef struct { bgfx_view_id_t _id; uint16_t _flags; float _depth; uint8_t _stencil; uint8_t _c0; uint8_t _c1; uint8_t _c2; uint8_t _c3; uint8_t _c4; uint8_t _c5; uint8_t _c6; uint8_t _c7; } bgfx_cmd_arg_set_view_clear_mrt_t;
typedef struct { bgfx_view_id_t _id; bgfx_view_mode_t _mode; } bgfx_cmd_arg_set_view_mode_t;
typedef struct { bgfx_view_id_t _id; bgfx_frame_buffer_handle_t _handle; } bgfx_cmd_arg_set_view_frame_buffer_t;
typedef struct { bgfx_view_id_t _id; const void * _view; const void * _proj; } bgfx_cmd_arg_set_view_transform_t;
typedef struct { bgfx_view_id_t _id; uint16_t _num; const bgfx_view_id_t * _order; } bgfx_cmd_arg_set_view_order_t;
typedef struct { bool _forThread; } bgfx_cmd_arg_encoder_begin_t;
typedef struct { bgfx_encoder_t * _encoder; } bgfx_cmd_arg_encoder_end_t;
typedef struct { bgfx_encoder_t* _this; const char * _marker; } bgfx_cmd_arg_encoder_set_marker_t;
typedef struct { bgfx_encoder_t* _this; uint64_t _state; uint32_t _rgba; } bgfx_cmd_arg_encoder_set_state_t;
typedef struct { bgfx_encoder_t* _this; bgfx_occlusion_query_handle_t _handle; bool _visible; } bgfx_cmd_arg_encoder_set_condition_t;
typedef struct { bgfx_encoder_t* _this; uint32_t _fstencil; uint32_t _bstencil; } bgfx_cmd_arg_encoder_set_stencil_t;
typedef struct { bgfx_encoder_t* _this; uint16_t _x; uint16_t _y; uint16_t _width; uint16_t _height; } bgfx_cmd_arg_encoder_set_scissor_t;
typedef struct { bgfx_encoder_t* _this; uint16_t _cache; } bgfx_cmd_arg_encoder_set_scissor_cached_t;
typedef struct { bgfx_encoder_t* _this; const void * _mtx; uint16_t _num; } bgfx_cmd_arg_encoder_set_transform_t;
typedef struct { bgfx_encoder_t* _this; uint32_t _cache; uint16_t _num; } bgfx_cmd_arg_encoder_set_transform_cached_t;
typedef struct { bgfx_encoder_t* _this; bgfx_transform_t * _transform; uint16_t _num; } bgfx_cmd_arg_encoder_alloc_transform_t;
typedef struct { bgfx_encoder_t* _this; bgfx_uniform_handle_t _handle; const void * _value; uint16_t _num; } bgfx_cmd_arg_encoder_set_uniform_t;
typedef struct { bgfx_encoder_t* _this; bgfx_index_buffer_handle_t _handle; uint32_t _firstIndex; uint32_t _numIndices; } bgfx_cmd_arg_encoder_set_index_buffer_t;
typedef struct { bgfx_encoder_t* _this; bgfx_dynamic_index_buffer_handle_t _handle; uint32_t _firstIndex; uint32_t _numIndices; } bgfx_cmd_arg_encoder_set_dynamic_index_buffer_t;
typedef struct { bgfx_encoder_t* _this; const bgfx_transient_index_buffer_t * _tib; uint32_t _firstIndex; uint32_t _numIndices; } bgfx_cmd_arg_encoder_set_transient_index_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stream; bgfx_vertex_buffer_handle_t _handle; uint32_t _startVertex; uint32_t _numVertices; } bgfx_cmd_arg_encoder_set_vertex_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stream; bgfx_dynamic_vertex_buffer_handle_t _handle; uint32_t _startVertex; uint32_t _numVertices; } bgfx_cmd_arg_encoder_set_dynamic_vertex_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stream; const bgfx_transient_vertex_buffer_t * _tvb; uint32_t _startVertex; uint32_t _numVertices; } bgfx_cmd_arg_encoder_set_transient_vertex_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint32_t _numVertices; } bgfx_cmd_arg_encoder_set_vertex_count_t;
typedef struct { bgfx_encoder_t* _this; const bgfx_instance_data_buffer_t * _idb; uint32_t _start; uint32_t _num; } bgfx_cmd_arg_encoder_set_instance_data_buffer_t;
typedef struct { bgfx_encoder_t* _this; bgfx_vertex_buffer_handle_t _handle; uint32_t _startVertex; uint32_t _num; } bgfx_cmd_arg_encoder_set_instance_data_from_vertex_buffer_t;
typedef struct { bgfx_encoder_t* _this; bgfx_dynamic_vertex_buffer_handle_t _handle; uint32_t _startVertex; uint32_t _num; } bgfx_cmd_arg_encoder_set_instance_data_from_dynamic_vertex_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint32_t _numInstances; } bgfx_cmd_arg_encoder_set_instance_count_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stage; bgfx_uniform_handle_t _sampler; bgfx_texture_handle_t _handle; uint32_t _flags; } bgfx_cmd_arg_encoder_set_texture_t;
typedef struct { bgfx_encoder_t* _this; bgfx_view_id_t _id; } bgfx_cmd_arg_encoder_touch_t;
typedef struct { bgfx_encoder_t* _this; bgfx_view_id_t _id; bgfx_program_handle_t _program; uint32_t _depth; bool _preserveState; } bgfx_cmd_arg_encoder_submit_t;
typedef struct { bgfx_encoder_t* _this; bgfx_view_id_t _id; bgfx_program_handle_t _program; bgfx_occlusion_query_handle_t _occlusionQuery; uint32_t _depth; bool _preserveState; } bgfx_cmd_arg_encoder_submit_occlusion_query_t;
typedef struct { bgfx_encoder_t* _this; bgfx_view_id_t _id; bgfx_program_handle_t _program; bgfx_indirect_buffer_handle_t _indirectHandle; uint16_t _start; uint16_t _num; uint32_t _depth; bool _preserveState; } bgfx_cmd_arg_encoder_submit_indirect_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stage; bgfx_index_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_encoder_set_compute_index_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stage; bgfx_vertex_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_encoder_set_compute_vertex_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stage; bgfx_dynamic_index_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_encoder_set_compute_dynamic_index_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stage; bgfx_dynamic_vertex_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_encoder_set_compute_dynamic_vertex_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stage; bgfx_indirect_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_encoder_set_compute_indirect_buffer_t;
typedef struct { bgfx_encoder_t* _this; uint8_t _stage; bgfx_texture_handle_t _handle; uint8_t _mip; bgfx_access_t _access; bgfx_texture_format_t _format; } bgfx_cmd_arg_encoder_set_image_t;
typedef struct { bgfx_encoder_t* _this; bgfx_view_id_t _id; bgfx_program_handle_t _program; uint32_t _numX; uint32_t _numY; uint32_t _numZ; } bgfx_cmd_arg_encoder_dispatch_t;
typedef struct { bgfx_encoder_t* _this; bgfx_view_id_t _id; bgfx_program_handle_t _program; bgfx_indirect_buffer_handle_t _indirectHandle; uint16_t _start; uint16_t _num; } bgfx_cmd_arg_encoder_dispatch_indirect_t;
typedef struct { bgfx_encoder_t* _this; } bgfx_cmd_arg_encoder_discard_t;
typedef struct { bgfx_encoder_t* _this; 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; } bgfx_cmd_arg_encoder_blit_t;
typedef struct { bgfx_frame_buffer_handle_t _handle; const char * _filePath; } bgfx_cmd_arg_request_screen_shot_t;
typedef struct { int32_t _msecs; } bgfx_cmd_arg_render_frame_t;
typedef struct { const bgfx_platform_data_t * _data; } bgfx_cmd_arg_set_platform_data_t;
typedef struct { ; } bgfx_cmd_arg_get_internal_data_t;
typedef struct { bgfx_texture_handle_t _handle; uintptr_t _ptr; } bgfx_cmd_arg_override_internal_texture_ptr_t;
typedef struct { bgfx_texture_handle_t _handle; uint16_t _width; uint16_t _height; uint8_t _numMips; bgfx_texture_format_t _format; uint32_t _flags; } bgfx_cmd_arg_override_internal_texture_t;
typedef struct { const char * _marker; } bgfx_cmd_arg_set_marker_t;
typedef struct { uint64_t _state; uint32_t _rgba; } bgfx_cmd_arg_set_state_t;
typedef struct { bgfx_occlusion_query_handle_t _handle; bool _visible; } bgfx_cmd_arg_set_condition_t;
typedef struct { uint32_t _fstencil; uint32_t _bstencil; } bgfx_cmd_arg_set_stencil_t;
typedef struct { uint16_t _x; uint16_t _y; uint16_t _width; uint16_t _height; } bgfx_cmd_arg_set_scissor_t;
typedef struct { uint16_t _cache; } bgfx_cmd_arg_set_scissor_cached_t;
typedef struct { const void * _mtx; uint16_t _num; } bgfx_cmd_arg_set_transform_t;
typedef struct { uint32_t _cache; uint16_t _num; } bgfx_cmd_arg_set_transform_cached_t;
typedef struct { bgfx_transform_t * _transform; uint16_t _num; } bgfx_cmd_arg_alloc_transform_t;
typedef struct { bgfx_uniform_handle_t _handle; const void * _value; uint16_t _num; } bgfx_cmd_arg_set_uniform_t;
typedef struct { bgfx_index_buffer_handle_t _handle; uint32_t _firstIndex; uint32_t _numIndices; } bgfx_cmd_arg_set_index_buffer_t;
typedef struct { bgfx_dynamic_index_buffer_handle_t _handle; uint32_t _firstIndex; uint32_t _numIndices; } bgfx_cmd_arg_set_dynamic_index_buffer_t;
typedef struct { const bgfx_transient_index_buffer_t * _tib; uint32_t _firstIndex; uint32_t _numIndices; } bgfx_cmd_arg_set_transient_index_buffer_t;
typedef struct { uint8_t _stream; bgfx_vertex_buffer_handle_t _handle; uint32_t _startVertex; uint32_t _numVertices; } bgfx_cmd_arg_set_vertex_buffer_t;
typedef struct { uint8_t _stream; bgfx_dynamic_vertex_buffer_handle_t _handle; uint32_t _startVertex; uint32_t _numVertices; } bgfx_cmd_arg_set_dynamic_vertex_buffer_t;
typedef struct { uint8_t _stream; const bgfx_transient_vertex_buffer_t * _tvb; uint32_t _startVertex; uint32_t _numVertices; } bgfx_cmd_arg_set_transient_vertex_buffer_t;
typedef struct { uint32_t _numVertices; } bgfx_cmd_arg_set_vertex_count_t;
typedef struct { const bgfx_instance_data_buffer_t * _idb; uint32_t _start; uint32_t _num; } bgfx_cmd_arg_set_instance_data_buffer_t;
typedef struct { bgfx_vertex_buffer_handle_t _handle; uint32_t _startVertex; uint32_t _num; } bgfx_cmd_arg_set_instance_data_from_vertex_buffer_t;
typedef struct { bgfx_dynamic_vertex_buffer_handle_t _handle; uint32_t _startVertex; uint32_t _num; } bgfx_cmd_arg_set_instance_data_from_dynamic_vertex_buffer_t;
typedef struct { uint32_t _numInstances; } bgfx_cmd_arg_set_instance_count_t;
typedef struct { uint8_t _stage; bgfx_uniform_handle_t _sampler; bgfx_texture_handle_t _handle; uint32_t _flags; } bgfx_cmd_arg_set_texture_t;
typedef struct { bgfx_view_id_t _id; } bgfx_cmd_arg_touch_t;
typedef struct { bgfx_view_id_t _id; bgfx_program_handle_t _program; uint32_t _depth; bool _preserveState; } bgfx_cmd_arg_submit_t;
typedef struct { bgfx_view_id_t _id; bgfx_program_handle_t _program; bgfx_occlusion_query_handle_t _occlusionQuery; uint32_t _depth; bool _preserveState; } bgfx_cmd_arg_submit_occlusion_query_t;
typedef struct { bgfx_view_id_t _id; bgfx_program_handle_t _program; bgfx_indirect_buffer_handle_t _indirectHandle; uint16_t _start; uint16_t _num; uint32_t _depth; bool _preserveState; } bgfx_cmd_arg_submit_indirect_t;
typedef struct { uint8_t _stage; bgfx_index_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_set_compute_index_buffer_t;
typedef struct { uint8_t _stage; bgfx_vertex_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_set_compute_vertex_buffer_t;
typedef struct { uint8_t _stage; bgfx_dynamic_index_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_set_compute_dynamic_index_buffer_t;
typedef struct { uint8_t _stage; bgfx_dynamic_vertex_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_set_compute_dynamic_vertex_buffer_t;
typedef struct { uint8_t _stage; bgfx_indirect_buffer_handle_t _handle; bgfx_access_t _access; } bgfx_cmd_arg_set_compute_indirect_buffer_t;
typedef struct { uint8_t _stage; bgfx_texture_handle_t _handle; uint8_t _mip; bgfx_access_t _access; bgfx_texture_format_t _format; } bgfx_cmd_arg_set_image_t;
typedef struct { bgfx_view_id_t _id; bgfx_program_handle_t _program; uint32_t _numX; uint32_t _numY; uint32_t _numZ; } bgfx_cmd_arg_dispatch_t;
typedef struct { bgfx_view_id_t _id; bgfx_program_handle_t _program; bgfx_indirect_buffer_handle_t _indirectHandle; uint16_t _start; uint16_t _num; } bgfx_cmd_arg_dispatch_indirect_t;
typedef struct { ; } bgfx_cmd_arg_discard_t;
typedef struct { 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; } bgfx_cmd_arg_blit_t;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment