Last active
September 19, 2018 23:58
-
-
Save raizam/dd1a9052ca8922e64acede6e52830032 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
public unsafe partial struct bgfx_vertex_decl_t | |
{ | |
public uint hash; | |
public ushort stride; | |
internal fixed ushort offset[18]; | |
internal fixed ushort attributes[18]; | |
} | |
public unsafe partial struct bgfx_resolution_t | |
{ | |
public bgfx_texture_format_t format; | |
public uint width; | |
public uint height; | |
public uint reset; | |
} | |
public unsafe partial struct bgfx_init_limits_t | |
{ | |
public ushort maxEncoders; | |
public uint transientVbSize; | |
public uint transientIbSize; | |
} | |
public unsafe partial struct bgfx_callback_vtbl_s | |
{ | |
public IntPtr fatal; | |
public IntPtr trace_vargs; | |
public IntPtr profiler_begin; | |
public IntPtr profiler_begin_literal; | |
public IntPtr profiler_end; | |
public IntPtr cache_read_size; | |
public IntPtr cache_read; | |
public IntPtr cache_write; | |
public IntPtr screen_shot; | |
public IntPtr capture_begin; | |
public IntPtr capture_end; | |
public IntPtr capture_frame; | |
} | |
public unsafe partial struct bgfx_callback_interface_t | |
{ | |
public IntPtr vtbl; | |
} | |
public unsafe partial struct bgfx_allocator_vtbl_s | |
{ | |
public IntPtr realloc; | |
} | |
public unsafe partial struct bgfx_allocator_interface_t | |
{ | |
public IntPtr vtbl; | |
} | |
public unsafe partial struct bgfx_init_t | |
{ | |
public bgfx_renderer_type_t type; | |
public ushort vendorId; | |
public ushort deviceId; | |
public bool debug; | |
public bool profile; | |
public bgfx_resolution_t resolution; | |
public bgfx_init_limits_t limits; | |
public bgfx_callback_interface_t * callback; | |
public bgfx_allocator_interface_t * allocator; | |
} | |
public unsafe partial struct bgfx_caps_gpu_t | |
{ | |
public ushort vendorId; | |
public ushort deviceId; | |
} | |
public unsafe partial struct bgfx_caps_limits_t | |
{ | |
public uint maxDrawCalls; | |
public uint maxBlits; | |
public uint maxTextureSize; | |
public uint maxTextureLayers; | |
public uint maxViews; | |
public uint maxFrameBuffers; | |
public uint maxFBAttachments; | |
public uint maxPrograms; | |
public uint maxShaders; | |
public uint maxTextures; | |
public uint maxTextureSamplers; | |
public uint maxComputeBindings; | |
public uint maxVertexDecls; | |
public uint maxVertexStreams; | |
public uint maxIndexBuffers; | |
public uint maxVertexBuffers; | |
public uint maxDynamicIndexBuffers; | |
public uint maxDynamicVertexBuffers; | |
public uint maxUniforms; | |
public uint maxOcclusionQueries; | |
public uint maxEncoders; | |
public uint transientVbSize; | |
public uint transientIbSize; | |
} | |
public unsafe partial struct bgfx_caps_t | |
{ | |
public bgfx_renderer_type_t rendererType; | |
public ulong supported; | |
public ushort vendorId; | |
public ushort deviceId; | |
public bool homogeneousDepth; | |
public bool originBottomLeft; | |
public char numGPUs; | |
public bgfx_caps_gpu_t4 gpu; | |
public bgfx_caps_limits_t limits; | |
internal fixed ushort formats[85]; | |
} | |
public unsafe partial struct bgfx_view_stats_t | |
{ | |
internal fixed sbyte name[256]; | |
public bgfx_view_id_t view; | |
public long cpuTimeElapsed; | |
public long gpuTimeElapsed; | |
} | |
public unsafe partial struct bgfx_encoder_stats_t | |
{ | |
public long cpuTimeBegin; | |
public long cpuTimeEnd; | |
} | |
public unsafe partial struct bgfx_stats_t | |
{ | |
public long cpuTimeFrame; | |
public long cpuTimeBegin; | |
public long cpuTimeEnd; | |
public long cpuTimerFreq; | |
public long gpuTimeBegin; | |
public long gpuTimeEnd; | |
public long gpuTimerFreq; | |
public long waitRender; | |
public long waitSubmit; | |
public uint numDraw; | |
public uint numCompute; | |
public uint maxGpuLatency; | |
public ushort numDynamicIndexBuffers; | |
public ushort numDynamicVertexBuffers; | |
public ushort numFrameBuffers; | |
public ushort numIndexBuffers; | |
public ushort numOcclusionQueries; | |
public ushort numPrograms; | |
public ushort numShaders; | |
public ushort numTextures; | |
public ushort numUniforms; | |
public ushort numVertexBuffers; | |
public ushort numVertexDecls; | |
public long textureMemoryUsed; | |
public long rtMemoryUsed; | |
public int transientVbUsed; | |
public int transientIbUsed; | |
internal fixed uint numPrims[5]; | |
public long gpuMemoryMax; | |
public long gpuMemoryUsed; | |
public ushort width; | |
public ushort height; | |
public ushort textWidth; | |
public ushort textHeight; | |
public ushort numViews; | |
public bgfx_view_stats_t * viewStats; | |
public char numEncoders; | |
public bgfx_encoder_stats_t * encoderStats; | |
} | |
public unsafe partial struct bgfx_memory_t | |
{ | |
public IntPtr data; | |
public uint size; | |
} | |
public unsafe partial struct bgfx_index_buffer_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_vertex_buffer_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_dynamic_index_buffer_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_dynamic_vertex_buffer_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_transient_index_buffer_t | |
{ | |
public IntPtr data; | |
public uint size; | |
public bgfx_index_buffer_handle_t handle; | |
public uint startIndex; | |
} | |
public unsafe partial struct bgfx_vertex_decl_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_transient_vertex_buffer_t | |
{ | |
public IntPtr data; | |
public uint size; | |
public uint startVertex; | |
public ushort stride; | |
public bgfx_vertex_buffer_handle_t handle; | |
public bgfx_vertex_decl_handle_t decl; | |
} | |
public unsafe partial struct bgfx_instance_data_buffer_t | |
{ | |
public IntPtr data; | |
public uint size; | |
public uint offset; | |
public uint num; | |
public ushort stride; | |
public bgfx_vertex_buffer_handle_t handle; | |
} | |
public unsafe partial struct bgfx_indirect_buffer_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_shader_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_uniform_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_uniform_info_t | |
{ | |
internal fixed sbyte name[256]; | |
public bgfx_uniform_type_t type; | |
public ushort num; | |
} | |
public unsafe partial struct bgfx_program_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_texture_info_t | |
{ | |
public bgfx_texture_format_t format; | |
public uint storageSize; | |
public ushort width; | |
public ushort height; | |
public ushort depth; | |
public ushort numLayers; | |
public char numMips; | |
public char bitsPerPixel; | |
public bool cubeMap; | |
} | |
public unsafe partial struct bgfx_texture_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_frame_buffer_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_attachment_t | |
{ | |
public bgfx_texture_handle_t handle; | |
public ushort mip; | |
public ushort layer; | |
} | |
public unsafe partial struct bgfx_occlusion_query_handle_t | |
{ | |
public ushort idx; | |
} | |
public unsafe partial struct bgfx_transform_t | |
{ | |
public IntPtr data; | |
public ushort num; | |
} | |
public enum bgfx_renderer_type_t : Int32 | |
{ | |
@BGFX_RENDERER_TYPE_NOOP = 0, | |
@BGFX_RENDERER_TYPE_DIRECT3D9 = 1, | |
@BGFX_RENDERER_TYPE_DIRECT3D11 = 2, | |
@BGFX_RENDERER_TYPE_DIRECT3D12 = 3, | |
@BGFX_RENDERER_TYPE_GNM = 4, | |
@BGFX_RENDERER_TYPE_METAL = 5, | |
@BGFX_RENDERER_TYPE_OPENGLES = 6, | |
@BGFX_RENDERER_TYPE_OPENGL = 7, | |
@BGFX_RENDERER_TYPE_VULKAN = 8, | |
@BGFX_RENDERER_TYPE_COUNT = 9, | |
} | |
public enum bgfx_attrib_t : Int32 | |
{ | |
@BGFX_ATTRIB_POSITION = 0, | |
@BGFX_ATTRIB_NORMAL = 1, | |
@BGFX_ATTRIB_TANGENT = 2, | |
@BGFX_ATTRIB_BITANGENT = 3, | |
@BGFX_ATTRIB_COLOR0 = 4, | |
@BGFX_ATTRIB_COLOR1 = 5, | |
@BGFX_ATTRIB_COLOR2 = 6, | |
@BGFX_ATTRIB_COLOR3 = 7, | |
@BGFX_ATTRIB_INDICES = 8, | |
@BGFX_ATTRIB_WEIGHT = 9, | |
@BGFX_ATTRIB_TEXCOORD0 = 10, | |
@BGFX_ATTRIB_TEXCOORD1 = 11, | |
@BGFX_ATTRIB_TEXCOORD2 = 12, | |
@BGFX_ATTRIB_TEXCOORD3 = 13, | |
@BGFX_ATTRIB_TEXCOORD4 = 14, | |
@BGFX_ATTRIB_TEXCOORD5 = 15, | |
@BGFX_ATTRIB_TEXCOORD6 = 16, | |
@BGFX_ATTRIB_TEXCOORD7 = 17, | |
@BGFX_ATTRIB_COUNT = 18, | |
} | |
public enum bgfx_attrib_type_t : Int32 | |
{ | |
@BGFX_ATTRIB_TYPE_UINT8 = 0, | |
@BGFX_ATTRIB_TYPE_UINT10 = 1, | |
@BGFX_ATTRIB_TYPE_INT16 = 2, | |
@BGFX_ATTRIB_TYPE_HALF = 3, | |
@BGFX_ATTRIB_TYPE_FLOAT = 4, | |
@BGFX_ATTRIB_TYPE_COUNT = 5, | |
} | |
public enum bgfx_topology_convert_t : Int32 | |
{ | |
@BGFX_TOPOLOGY_CONVERT_TRI_LIST_FLIP_WINDING = 0, | |
@BGFX_TOPOLOGY_CONVERT_TRI_STRIP_FLIP_WINDING = 1, | |
@BGFX_TOPOLOGY_CONVERT_TRI_LIST_TO_LINE_LIST = 2, | |
@BGFX_TOPOLOGY_CONVERT_TRI_STRIP_TO_TRI_LIST = 3, | |
@BGFX_TOPOLOGY_CONVERT_LINE_STRIP_TO_LINE_LIST = 4, | |
@BGFX_TOPOLOGY_CONVERT_COUNT = 5, | |
} | |
public enum bgfx_topology_sort_t : Int32 | |
{ | |
@BGFX_TOPOLOGY_SORT_DIRECTION_FRONT_TO_BACK_MIN = 0, | |
@BGFX_TOPOLOGY_SORT_DIRECTION_FRONT_TO_BACK_AVG = 1, | |
@BGFX_TOPOLOGY_SORT_DIRECTION_FRONT_TO_BACK_MAX = 2, | |
@BGFX_TOPOLOGY_SORT_DIRECTION_BACK_TO_FRONT_MIN = 3, | |
@BGFX_TOPOLOGY_SORT_DIRECTION_BACK_TO_FRONT_AVG = 4, | |
@BGFX_TOPOLOGY_SORT_DIRECTION_BACK_TO_FRONT_MAX = 5, | |
@BGFX_TOPOLOGY_SORT_DISTANCE_FRONT_TO_BACK_MIN = 6, | |
@BGFX_TOPOLOGY_SORT_DISTANCE_FRONT_TO_BACK_AVG = 7, | |
@BGFX_TOPOLOGY_SORT_DISTANCE_FRONT_TO_BACK_MAX = 8, | |
@BGFX_TOPOLOGY_SORT_DISTANCE_BACK_TO_FRONT_MIN = 9, | |
@BGFX_TOPOLOGY_SORT_DISTANCE_BACK_TO_FRONT_AVG = 10, | |
@BGFX_TOPOLOGY_SORT_DISTANCE_BACK_TO_FRONT_MAX = 11, | |
@BGFX_TOPOLOGY_SORT_COUNT = 12, | |
} | |
public enum bgfx_texture_format_t : Int32 | |
{ | |
@BGFX_TEXTURE_FORMAT_BC1 = 0, | |
@BGFX_TEXTURE_FORMAT_BC2 = 1, | |
@BGFX_TEXTURE_FORMAT_BC3 = 2, | |
@BGFX_TEXTURE_FORMAT_BC4 = 3, | |
@BGFX_TEXTURE_FORMAT_BC5 = 4, | |
@BGFX_TEXTURE_FORMAT_BC6H = 5, | |
@BGFX_TEXTURE_FORMAT_BC7 = 6, | |
@BGFX_TEXTURE_FORMAT_ETC1 = 7, | |
@BGFX_TEXTURE_FORMAT_ETC2 = 8, | |
@BGFX_TEXTURE_FORMAT_ETC2A = 9, | |
@BGFX_TEXTURE_FORMAT_ETC2A1 = 10, | |
@BGFX_TEXTURE_FORMAT_PTC12 = 11, | |
@BGFX_TEXTURE_FORMAT_PTC14 = 12, | |
@BGFX_TEXTURE_FORMAT_PTC12A = 13, | |
@BGFX_TEXTURE_FORMAT_PTC14A = 14, | |
@BGFX_TEXTURE_FORMAT_PTC22 = 15, | |
@BGFX_TEXTURE_FORMAT_PTC24 = 16, | |
@BGFX_TEXTURE_FORMAT_ATC = 17, | |
@BGFX_TEXTURE_FORMAT_ATCE = 18, | |
@BGFX_TEXTURE_FORMAT_ATCI = 19, | |
@BGFX_TEXTURE_FORMAT_ASTC4x4 = 20, | |
@BGFX_TEXTURE_FORMAT_ASTC5x5 = 21, | |
@BGFX_TEXTURE_FORMAT_ASTC6x6 = 22, | |
@BGFX_TEXTURE_FORMAT_ASTC8x5 = 23, | |
@BGFX_TEXTURE_FORMAT_ASTC8x6 = 24, | |
@BGFX_TEXTURE_FORMAT_ASTC10x5 = 25, | |
@BGFX_TEXTURE_FORMAT_UNKNOWN = 26, | |
@BGFX_TEXTURE_FORMAT_R1 = 27, | |
@BGFX_TEXTURE_FORMAT_A8 = 28, | |
@BGFX_TEXTURE_FORMAT_R8 = 29, | |
@BGFX_TEXTURE_FORMAT_R8I = 30, | |
@BGFX_TEXTURE_FORMAT_R8U = 31, | |
@BGFX_TEXTURE_FORMAT_R8S = 32, | |
@BGFX_TEXTURE_FORMAT_R16 = 33, | |
@BGFX_TEXTURE_FORMAT_R16I = 34, | |
@BGFX_TEXTURE_FORMAT_R16U = 35, | |
@BGFX_TEXTURE_FORMAT_R16F = 36, | |
@BGFX_TEXTURE_FORMAT_R16S = 37, | |
@BGFX_TEXTURE_FORMAT_R32I = 38, | |
@BGFX_TEXTURE_FORMAT_R32U = 39, | |
@BGFX_TEXTURE_FORMAT_R32F = 40, | |
@BGFX_TEXTURE_FORMAT_RG8 = 41, | |
@BGFX_TEXTURE_FORMAT_RG8I = 42, | |
@BGFX_TEXTURE_FORMAT_RG8U = 43, | |
@BGFX_TEXTURE_FORMAT_RG8S = 44, | |
@BGFX_TEXTURE_FORMAT_RG16 = 45, | |
@BGFX_TEXTURE_FORMAT_RG16I = 46, | |
@BGFX_TEXTURE_FORMAT_RG16U = 47, | |
@BGFX_TEXTURE_FORMAT_RG16F = 48, | |
@BGFX_TEXTURE_FORMAT_RG16S = 49, | |
@BGFX_TEXTURE_FORMAT_RG32I = 50, | |
@BGFX_TEXTURE_FORMAT_RG32U = 51, | |
@BGFX_TEXTURE_FORMAT_RG32F = 52, | |
@BGFX_TEXTURE_FORMAT_RGB8 = 53, | |
@BGFX_TEXTURE_FORMAT_RGB8I = 54, | |
@BGFX_TEXTURE_FORMAT_RGB8U = 55, | |
@BGFX_TEXTURE_FORMAT_RGB8S = 56, | |
@BGFX_TEXTURE_FORMAT_RGB9E5F = 57, | |
@BGFX_TEXTURE_FORMAT_BGRA8 = 58, | |
@BGFX_TEXTURE_FORMAT_RGBA8 = 59, | |
@BGFX_TEXTURE_FORMAT_RGBA8I = 60, | |
@BGFX_TEXTURE_FORMAT_RGBA8U = 61, | |
@BGFX_TEXTURE_FORMAT_RGBA8S = 62, | |
@BGFX_TEXTURE_FORMAT_RGBA16 = 63, | |
@BGFX_TEXTURE_FORMAT_RGBA16I = 64, | |
@BGFX_TEXTURE_FORMAT_RGBA16U = 65, | |
@BGFX_TEXTURE_FORMAT_RGBA16F = 66, | |
@BGFX_TEXTURE_FORMAT_RGBA16S = 67, | |
@BGFX_TEXTURE_FORMAT_RGBA32I = 68, | |
@BGFX_TEXTURE_FORMAT_RGBA32U = 69, | |
@BGFX_TEXTURE_FORMAT_RGBA32F = 70, | |
@BGFX_TEXTURE_FORMAT_R5G6B5 = 71, | |
@BGFX_TEXTURE_FORMAT_RGBA4 = 72, | |
@BGFX_TEXTURE_FORMAT_RGB5A1 = 73, | |
@BGFX_TEXTURE_FORMAT_RGB10A2 = 74, | |
@BGFX_TEXTURE_FORMAT_RG11B10F = 75, | |
@BGFX_TEXTURE_FORMAT_UNKNOWN_DEPTH = 76, | |
@BGFX_TEXTURE_FORMAT_D16 = 77, | |
@BGFX_TEXTURE_FORMAT_D24 = 78, | |
@BGFX_TEXTURE_FORMAT_D24S8 = 79, | |
@BGFX_TEXTURE_FORMAT_D32 = 80, | |
@BGFX_TEXTURE_FORMAT_D16F = 81, | |
@BGFX_TEXTURE_FORMAT_D24F = 82, | |
@BGFX_TEXTURE_FORMAT_D32F = 83, | |
@BGFX_TEXTURE_FORMAT_D0S8 = 84, | |
@BGFX_TEXTURE_FORMAT_COUNT = 85, | |
} | |
public enum bgfx_fatal_t : Int32 | |
{ | |
@BGFX_FATAL_DEBUG_CHECK = 0, | |
@BGFX_FATAL_INVALID_SHADER = 1, | |
@BGFX_FATAL_UNABLE_TO_INITIALIZE = 2, | |
@BGFX_FATAL_UNABLE_TO_CREATE_TEXTURE = 3, | |
@BGFX_FATAL_DEVICE_LOST = 4, | |
@BGFX_FATAL_COUNT = 5, | |
} | |
public enum bgfx_uniform_type_t : Int32 | |
{ | |
@BGFX_UNIFORM_TYPE_INT1 = 0, | |
@BGFX_UNIFORM_TYPE_END = 1, | |
@BGFX_UNIFORM_TYPE_VEC4 = 2, | |
@BGFX_UNIFORM_TYPE_MAT3 = 3, | |
@BGFX_UNIFORM_TYPE_MAT4 = 4, | |
@BGFX_UNIFORM_TYPE_COUNT = 5, | |
} | |
public enum bgfx_backbuffer_ratio_t : Int32 | |
{ | |
@BGFX_BACKBUFFER_RATIO_EQUAL = 0, | |
@BGFX_BACKBUFFER_RATIO_HALF = 1, | |
@BGFX_BACKBUFFER_RATIO_QUARTER = 2, | |
@BGFX_BACKBUFFER_RATIO_EIGHTH = 3, | |
@BGFX_BACKBUFFER_RATIO_SIXTEENTH = 4, | |
@BGFX_BACKBUFFER_RATIO_DOUBLE = 5, | |
@BGFX_BACKBUFFER_RATIO_COUNT = 6, | |
} | |
public enum bgfx_occlusion_query_result_t : Int32 | |
{ | |
@BGFX_OCCLUSION_QUERY_RESULT_INVISIBLE = 0, | |
@BGFX_OCCLUSION_QUERY_RESULT_VISIBLE = 1, | |
@BGFX_OCCLUSION_QUERY_RESULT_NORESULT = 2, | |
@BGFX_OCCLUSION_QUERY_RESULT_COUNT = 3, | |
} | |
public enum bgfx_view_mode_t : Int32 | |
{ | |
@BGFX_VIEW_MODE_DEFAULT = 0, | |
@BGFX_VIEW_MODE_SEQUENTIAL = 1, | |
@BGFX_VIEW_MODE_DEPTH_ASCENDING = 2, | |
@BGFX_VIEW_MODE_DEPTH_DESCENDING = 3, | |
@BGFX_VIEW_MODE_CCOUNT = 4, | |
} | |
public enum bgfx_access_t : Int32 | |
{ | |
@BGFX_ACCESS_READ = 0, | |
@BGFX_ACCESS_WRITE = 1, | |
@BGFX_ACCESS_READWRITE = 2, | |
@BGFX_ACCESS_COUNT = 3, | |
} | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate void fatal(bgfx_callback_interface_t * _this, bgfx_fatal_t _code, IntPtr _str); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate void trace_vargs(bgfx_callback_interface_t * _this, IntPtr _filePath, ushort _line, IntPtr _format, IntPtr _argList); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate void profiler_begin(bgfx_callback_interface_t * _this, IntPtr _name, uint _abgr, IntPtr _filePath, ushort _line); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate void profiler_end(bgfx_callback_interface_t * _this); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate uint cache_read_size(uint uint32_t, bgfx_callback_interface_t * _this, ulong _id); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate bool cache_read(bgfx_callback_interface_t * _this, ulong _id, IntPtr _data, uint _size); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate void cache_write(bgfx_callback_interface_t * _this, ulong _id, IntPtr _data, uint _size); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate void screen_shot(bgfx_callback_interface_t * _this, IntPtr _filePath, uint _width, uint _height, uint _pitch, IntPtr _data, uint _size, bool _yflip); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate void capture_begin(bgfx_callback_interface_t * _this, uint _width, uint _height, uint _pitch, bgfx_texture_format_t _format, bool _yflip); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate void capture_frame(bgfx_callback_interface_t * _this, IntPtr _data, uint _size); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate IntPtr realloc(bgfx_allocator_interface_t * _this, IntPtr _ptr, ulong _size, ulong _align, IntPtr _file, uint _line); | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public unsafe delegate void _releaseFn(IntPtr bgfx_release_fn_t); | |
public unsafe partial struct bgfx_encoder_s | |
{ | |
IntPtr ptr; | |
public bgfx_encoder_s(IntPtr ptr) => this.ptr = ptr; | |
} | |
public unsafe partial struct bgfx_view_id_t | |
{ | |
public bgfx_view_id_t(UInt16 value) | |
{ | |
Value = value; | |
} | |
public UInt16 Value; | |
} | |
public unsafe partial struct float4 | |
{ | |
public float _0; | |
public float _1; | |
public float _2; | |
public float _3; | |
public float this[int index] | |
{ | |
get | |
{ | |
fixed (float* ptr = &_0) return *(ptr + index); | |
} | |
} | |
} | |
public unsafe partial struct float3 | |
{ | |
public float _0; | |
public float _1; | |
public float _2; | |
public float this[int index] | |
{ | |
get | |
{ | |
fixed (float* ptr = &_0) return *(ptr + index); | |
} | |
} | |
} | |
public unsafe partial struct bgfx_caps_gpu_t4 | |
{ | |
public bgfx_caps_gpu_t _0; | |
public bgfx_caps_gpu_t _1; | |
public bgfx_caps_gpu_t _2; | |
public bgfx_caps_gpu_t _3; | |
public bgfx_caps_gpu_t this[int index] | |
{ | |
get | |
{ | |
fixed (bgfx_caps_gpu_t* ptr = &_0) return *(ptr + index); | |
} | |
} | |
} | |
internal unsafe static class bgfx | |
{ | |
/// <summary> | |
/// void bgfx_vertex_decl_begin(bgfx_vertex_decl_t *_decl, | |
/// bgfx_renderer_type_t _renderer) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_vertex_decl_begin", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_vertex_decl_begin(bgfx_vertex_decl_t * _decl, bgfx_renderer_type_t _renderer); | |
/// <summary> | |
/// void bgfx_vertex_decl_add(bgfx_vertex_decl_t *_decl, bgfx_attrib_t _attrib, | |
/// uint8_t _num, bgfx_attrib_type_t _type, | |
/// bool _normalized, bool _asInt) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_vertex_decl_add", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_vertex_decl_add(bgfx_vertex_decl_t * _decl, bgfx_attrib_t _attrib, char _num, bgfx_attrib_type_t _type, bool _normalized, bool _asInt); | |
/// <summary> | |
/// void bgfx_vertex_decl_decode(const bgfx_vertex_decl_t *_decl, | |
/// bgfx_attrib_t _attrib, uint8_t *_num, | |
/// bgfx_attrib_type_t *_type, bool *_normalized, | |
/// bool *_asInt) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_vertex_decl_decode", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_vertex_decl_decode(IntPtr _decl, bgfx_attrib_t _attrib, IntPtr _num, bgfx_attrib_type_t * _type, IntPtr _normalized, IntPtr _asInt); | |
/// <summary> | |
/// bool bgfx_vertex_decl_has(const bgfx_vertex_decl_t *_decl, | |
/// bgfx_attrib_t _attrib) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_vertex_decl_has", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bool bgfx_vertex_decl_has(IntPtr _decl, bgfx_attrib_t _attrib); | |
/// <summary> | |
/// void bgfx_vertex_decl_skip(bgfx_vertex_decl_t *_decl, uint8_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_vertex_decl_skip", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_vertex_decl_skip(bgfx_vertex_decl_t * _decl, char _num); | |
/// <summary> | |
/// void bgfx_vertex_decl_end(bgfx_vertex_decl_t *_decl) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_vertex_decl_end", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_vertex_decl_end(bgfx_vertex_decl_t * _decl); | |
/// <summary> | |
/// void bgfx_vertex_pack(const float _input[4], bool _inputNormalized, | |
/// bgfx_attrib_t _attr, const bgfx_vertex_decl_t *_decl, | |
/// void *_data, uint32_t _index) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_vertex_pack", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_vertex_pack(in float4 _input, bool _inputNormalized, bgfx_attrib_t _attr, IntPtr _decl, IntPtr _data, uint _index); | |
/// <summary> | |
/// void bgfx_vertex_unpack(float _output[4], bgfx_attrib_t _attr, | |
/// const bgfx_vertex_decl_t *_decl, const void *_data, | |
/// uint32_t _index) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_vertex_unpack", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_vertex_unpack(out float4 _output, bgfx_attrib_t _attr, IntPtr _decl, IntPtr _data, uint _index); | |
/// <summary> | |
/// void bgfx_vertex_convert(const bgfx_vertex_decl_t *_destDecl, void *_destData, | |
/// const bgfx_vertex_decl_t *_srcDecl, | |
/// const void *_srcData, uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_vertex_convert", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_vertex_convert(IntPtr _destDecl, IntPtr _destData, IntPtr _srcDecl, IntPtr _srcData, uint _num); | |
/// <summary> | |
/// uint16_t bgfx_weld_vertices(uint16_t *_output, const bgfx_vertex_decl_t *_decl, | |
/// const void *_data, uint16_t _num, float _epsilon) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_weld_vertices", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern ushort bgfx_weld_vertices(IntPtr _output, IntPtr _decl, IntPtr _data, ushort _num, float _epsilon); | |
/// <summary> | |
/// uint32_t bgfx_topology_convert(bgfx_topology_convert_t _conversion, void *_dst, | |
/// uint32_t _dstSize, const void *_indices, | |
/// uint32_t _numIndices, bool _index32) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_topology_convert", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_topology_convert(bgfx_topology_convert_t _conversion, IntPtr _dst, uint _dstSize, IntPtr _indices, uint _numIndices, bool _index32); | |
/// <summary> | |
/// void bgfx_topology_sort_tri_list(bgfx_topology_sort_t _sort, void *_dst, | |
/// uint32_t _dstSize, const float _dir[3], | |
/// const float _pos[3], const void *_vertices, | |
/// uint32_t _stride, const void *_indices, | |
/// uint32_t _numIndices, bool _index32) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_topology_sort_tri_list", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_topology_sort_tri_list(bgfx_topology_sort_t _sort, IntPtr _dst, uint _dstSize, in float3 _dir, in float3 _pos, IntPtr _vertices, uint _stride, IntPtr _indices, uint _numIndices, bool _index32); | |
/// <summary> | |
/// uint8_t bgfx_get_supported_renderers(uint8_t _max, bgfx_renderer_type_t *_enum) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_supported_renderers", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern char bgfx_get_supported_renderers(char _max, bgfx_renderer_type_t * _enum); | |
/// <summary> | |
/// const char *bgfx_get_renderer_name(bgfx_renderer_type_t _type) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_renderer_name", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern IntPtr bgfx_get_renderer_name(bgfx_renderer_type_t _type); | |
/// <summary> | |
/// void bgfx_init_ctor(bgfx_init_t *_init) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_init_ctor", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_init_ctor(bgfx_init_t * _init); | |
/// <summary> | |
/// bool bgfx_init(const bgfx_init_t *_init) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_init", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bool bgfx_init(IntPtr _init); | |
/// <summary> | |
/// void bgfx_shutdown() | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_shutdown", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_shutdown(); | |
/// <summary> | |
/// void bgfx_reset(uint32_t _width, uint32_t _height, uint32_t _flags, | |
/// bgfx_texture_format_t _format) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_reset", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_reset(uint _width, uint _height, uint _flags, bgfx_texture_format_t _format); | |
/// <summary> | |
/// struct bgfx_encoder_s *bgfx_begin() | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_begin", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern IntPtr bgfx_begin(); | |
/// <summary> | |
/// void bgfx_end(struct bgfx_encoder_s *_encoder) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_end", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_end(IntPtr _encoder); | |
/// <summary> | |
/// uint32_t bgfx_frame(bool _capture) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_frame", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_frame(bool _capture); | |
/// <summary> | |
/// bgfx_renderer_type_t bgfx_get_renderer_type() | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_renderer_type", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_renderer_type_t bgfx_get_renderer_type(); | |
/// <summary> | |
/// const bgfx_caps_t *bgfx_get_caps() | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_caps", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern IntPtr bgfx_get_caps(); | |
/// <summary> | |
/// const bgfx_stats_t *bgfx_get_stats() | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_stats", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern IntPtr bgfx_get_stats(); | |
/// <summary> | |
/// const bgfx_memory_t *bgfx_alloc(uint32_t _size) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_alloc", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern IntPtr bgfx_alloc(uint _size); | |
/// <summary> | |
/// const bgfx_memory_t *bgfx_copy(const void *_data, uint32_t _size) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_copy", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern IntPtr bgfx_copy(IntPtr _data, uint _size); | |
/// <summary> | |
/// const bgfx_memory_t *bgfx_make_ref(const void *_data, uint32_t _size) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_make_ref", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern IntPtr bgfx_make_ref(IntPtr _data, uint _size); | |
/// <summary> | |
/// const bgfx_memory_t *bgfx_make_ref_release(const void *_data, uint32_t _size, | |
/// bgfx_release_fn_t _releaseFn, | |
/// void *_userData) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_make_ref_release", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern IntPtr bgfx_make_ref_release(IntPtr _data, uint _size, IntPtr _releaseFn, IntPtr _userData); | |
/// <summary> | |
/// void bgfx_set_debug(uint32_t _debug) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_debug", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_debug(uint _debug); | |
/// <summary> | |
/// void bgfx_dbg_text_clear(uint8_t _attr, bool _small) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_dbg_text_clear", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_dbg_text_clear(char _attr, bool _small); | |
/// <summary> | |
/// void bgfx_dbg_text_printf(uint16_t _x, uint16_t _y, uint8_t _attr, | |
/// const char *_format, ...) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_dbg_text_printf", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_dbg_text_printf(ushort _x, ushort _y, char _attr, IntPtr _format); | |
/// <summary> | |
/// void bgfx_dbg_text_vprintf(uint16_t _x, uint16_t _y, uint8_t _attr, | |
/// const char *_format, va_list _argList) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_dbg_text_vprintf", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_dbg_text_vprintf(ushort _x, ushort _y, char _attr, IntPtr _format, IntPtr _argList); | |
/// <summary> | |
/// void bgfx_dbg_text_image(uint16_t _x, uint16_t _y, uint16_t _width, | |
/// uint16_t _height, const void *_data, uint16_t _pitch) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_dbg_text_image", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_dbg_text_image(ushort _x, ushort _y, ushort _width, ushort _height, IntPtr _data, ushort _pitch); | |
/// <summary> | |
/// bgfx_index_buffer_handle_t bgfx_create_index_buffer(const bgfx_memory_t *_mem, | |
/// uint16_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_index_buffer_handle_t bgfx_create_index_buffer(IntPtr _mem, ushort _flags); | |
/// <summary> | |
/// void bgfx_destroy_index_buffer(bgfx_index_buffer_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_index_buffer(bgfx_index_buffer_handle_t _handle); | |
/// <summary> | |
/// bgfx_vertex_buffer_handle_t | |
///bgfx_create_vertex_buffer(const bgfx_memory_t *_mem, | |
/// const bgfx_vertex_decl_t *_decl, uint16_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_vertex_buffer_handle_t bgfx_create_vertex_buffer(IntPtr _mem, IntPtr _decl, ushort _flags); | |
/// <summary> | |
/// void bgfx_destroy_vertex_buffer(bgfx_vertex_buffer_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_vertex_buffer(bgfx_vertex_buffer_handle_t _handle); | |
/// <summary> | |
/// bgfx_dynamic_index_buffer_handle_t | |
///bgfx_create_dynamic_index_buffer(uint32_t _num, uint16_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_dynamic_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_dynamic_index_buffer_handle_t bgfx_create_dynamic_index_buffer(uint _num, ushort _flags); | |
/// <summary> | |
/// bgfx_dynamic_index_buffer_handle_t | |
///bgfx_create_dynamic_index_buffer_mem(const bgfx_memory_t *_mem, uint16_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_dynamic_index_buffer_mem", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_dynamic_index_buffer_handle_t bgfx_create_dynamic_index_buffer_mem(IntPtr _mem, ushort _flags); | |
/// <summary> | |
/// void bgfx_update_dynamic_index_buffer( | |
/// bgfx_dynamic_index_buffer_handle_t _handle, uint32_t _startIndex, | |
/// const bgfx_memory_t *_mem) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_update_dynamic_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_update_dynamic_index_buffer(bgfx_dynamic_index_buffer_handle_t _handle, uint _startIndex, IntPtr _mem); | |
/// <summary> | |
/// void bgfx_destroy_dynamic_index_buffer( | |
/// bgfx_dynamic_index_buffer_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_dynamic_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_dynamic_index_buffer(bgfx_dynamic_index_buffer_handle_t _handle); | |
/// <summary> | |
/// bgfx_dynamic_vertex_buffer_handle_t bgfx_create_dynamic_vertex_buffer( | |
/// uint32_t _num, const bgfx_vertex_decl_t *_decl, uint16_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_dynamic_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_dynamic_vertex_buffer_handle_t bgfx_create_dynamic_vertex_buffer(uint _num, IntPtr _decl, ushort _flags); | |
/// <summary> | |
/// bgfx_dynamic_vertex_buffer_handle_t bgfx_create_dynamic_vertex_buffer_mem( | |
/// const bgfx_memory_t *_mem, const bgfx_vertex_decl_t *_decl, uint16_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_dynamic_vertex_buffer_mem", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_dynamic_vertex_buffer_handle_t bgfx_create_dynamic_vertex_buffer_mem(IntPtr _mem, IntPtr _decl, ushort _flags); | |
/// <summary> | |
/// void bgfx_update_dynamic_vertex_buffer( | |
/// bgfx_dynamic_vertex_buffer_handle_t _handle, uint32_t _startVertex, | |
/// const bgfx_memory_t *_mem) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_update_dynamic_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_update_dynamic_vertex_buffer(bgfx_dynamic_vertex_buffer_handle_t _handle, uint _startVertex, IntPtr _mem); | |
/// <summary> | |
/// void bgfx_destroy_dynamic_vertex_buffer( | |
/// bgfx_dynamic_vertex_buffer_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_dynamic_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_dynamic_vertex_buffer(bgfx_dynamic_vertex_buffer_handle_t _handle); | |
/// <summary> | |
/// uint32_t bgfx_get_avail_transient_index_buffer(uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_avail_transient_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_get_avail_transient_index_buffer(uint _num); | |
/// <summary> | |
/// uint32_t bgfx_get_avail_transient_vertex_buffer(uint32_t _num, | |
/// const bgfx_vertex_decl_t *_decl) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_avail_transient_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_get_avail_transient_vertex_buffer(uint _num, IntPtr _decl); | |
/// <summary> | |
/// uint32_t bgfx_get_avail_instance_data_buffer(uint32_t _num, uint16_t _stride) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_avail_instance_data_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_get_avail_instance_data_buffer(uint _num, ushort _stride); | |
/// <summary> | |
/// void bgfx_alloc_transient_index_buffer(bgfx_transient_index_buffer_t *_tib, | |
/// uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_alloc_transient_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_alloc_transient_index_buffer(bgfx_transient_index_buffer_t * _tib, uint _num); | |
/// <summary> | |
/// void bgfx_alloc_transient_vertex_buffer(bgfx_transient_vertex_buffer_t *_tvb, | |
/// uint32_t _num, | |
/// const bgfx_vertex_decl_t *_decl) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_alloc_transient_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_alloc_transient_vertex_buffer(bgfx_transient_vertex_buffer_t * _tvb, uint _num, IntPtr _decl); | |
/// <summary> | |
/// bool bgfx_alloc_transient_buffers(bgfx_transient_vertex_buffer_t *_tvb, | |
/// const bgfx_vertex_decl_t *_decl, | |
/// uint32_t _numVertices, | |
/// bgfx_transient_index_buffer_t *_tib, | |
/// uint32_t _numIndices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_alloc_transient_buffers", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bool bgfx_alloc_transient_buffers(bgfx_transient_vertex_buffer_t * _tvb, IntPtr _decl, uint _numVertices, bgfx_transient_index_buffer_t * _tib, uint _numIndices); | |
/// <summary> | |
/// void bgfx_alloc_instance_data_buffer(bgfx_instance_data_buffer_t *_idb, | |
/// uint32_t _num, uint16_t _stride) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_alloc_instance_data_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_alloc_instance_data_buffer(bgfx_instance_data_buffer_t * _idb, uint _num, ushort _stride); | |
/// <summary> | |
/// bgfx_indirect_buffer_handle_t bgfx_create_indirect_buffer(uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_indirect_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_indirect_buffer_handle_t bgfx_create_indirect_buffer(uint _num); | |
/// <summary> | |
/// void bgfx_destroy_indirect_buffer(bgfx_indirect_buffer_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_indirect_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_indirect_buffer(bgfx_indirect_buffer_handle_t _handle); | |
/// <summary> | |
/// bgfx_shader_handle_t bgfx_create_shader(const bgfx_memory_t *_mem) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_shader", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_shader_handle_t bgfx_create_shader(IntPtr _mem); | |
/// <summary> | |
/// uint16_t bgfx_get_shader_uniforms(bgfx_shader_handle_t _handle, | |
/// bgfx_uniform_handle_t *_uniforms, | |
/// uint16_t _max) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_shader_uniforms", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern ushort bgfx_get_shader_uniforms(bgfx_shader_handle_t _handle, bgfx_uniform_handle_t * _uniforms, ushort _max); | |
/// <summary> | |
/// void bgfx_get_uniform_info(bgfx_uniform_handle_t _handle, | |
/// bgfx_uniform_info_t *_info) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_uniform_info", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_get_uniform_info(bgfx_uniform_handle_t _handle, bgfx_uniform_info_t * _info); | |
/// <summary> | |
/// void bgfx_set_shader_name(bgfx_shader_handle_t _handle, const char *_name, | |
/// int32_t _len) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_shader_name", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_shader_name(bgfx_shader_handle_t _handle, IntPtr _name, int _len); | |
/// <summary> | |
/// void bgfx_destroy_shader(bgfx_shader_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_shader", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_shader(bgfx_shader_handle_t _handle); | |
/// <summary> | |
/// bgfx_program_handle_t bgfx_create_program(bgfx_shader_handle_t _vsh, | |
/// bgfx_shader_handle_t _fsh, | |
/// bool _destroyShaders) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_program", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_program_handle_t bgfx_create_program(bgfx_shader_handle_t _vsh, bgfx_shader_handle_t _fsh, bool _destroyShaders); | |
/// <summary> | |
/// bgfx_program_handle_t bgfx_create_compute_program(bgfx_shader_handle_t _csh, | |
/// bool _destroyShaders) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_compute_program", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_program_handle_t bgfx_create_compute_program(bgfx_shader_handle_t _csh, bool _destroyShaders); | |
/// <summary> | |
/// void bgfx_destroy_program(bgfx_program_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_program", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_program(bgfx_program_handle_t _handle); | |
/// <summary> | |
/// bool bgfx_is_texture_valid(uint16_t _depth, bool _cubeMap, uint16_t _numLayers, | |
/// bgfx_texture_format_t _format, uint64_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_is_texture_valid", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bool bgfx_is_texture_valid(ushort _depth, bool _cubeMap, ushort _numLayers, bgfx_texture_format_t _format, ulong _flags); | |
/// <summary> | |
/// void bgfx_calc_texture_size(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) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_calc_texture_size", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_calc_texture_size(bgfx_texture_info_t * _info, ushort _width, ushort _height, ushort _depth, bool _cubeMap, bool _hasMips, ushort _numLayers, bgfx_texture_format_t _format); | |
/// <summary> | |
/// bgfx_texture_handle_t bgfx_create_texture(const bgfx_memory_t *_mem, | |
/// uint64_t _flags, uint8_t _skip, | |
/// bgfx_texture_info_t *_info) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_texture", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_texture_handle_t bgfx_create_texture(IntPtr _mem, ulong _flags, char _skip, bgfx_texture_info_t * _info); | |
/// <summary> | |
/// bgfx_texture_handle_t bgfx_create_texture_2d(uint16_t _width, uint16_t _height, | |
/// bool _hasMips, uint16_t _numLayers, | |
/// bgfx_texture_format_t _format, | |
/// uint64_t _flags, | |
/// const bgfx_memory_t *_mem) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_texture_2d", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_texture_handle_t bgfx_create_texture_2d(ushort _width, ushort _height, bool _hasMips, ushort _numLayers, bgfx_texture_format_t _format, ulong _flags, IntPtr _mem); | |
/// <summary> | |
/// bgfx_texture_handle_t | |
///bgfx_create_texture_2d_scaled(bgfx_backbuffer_ratio_t _ratio, bool _hasMips, | |
/// uint16_t _numLayers, | |
/// bgfx_texture_format_t _format, uint64_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_texture_2d_scaled", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_texture_handle_t bgfx_create_texture_2d_scaled(bgfx_backbuffer_ratio_t _ratio, bool _hasMips, ushort _numLayers, bgfx_texture_format_t _format, ulong _flags); | |
/// <summary> | |
/// bgfx_texture_handle_t bgfx_create_texture_3d(uint16_t _width, uint16_t _height, | |
/// uint16_t _depth, bool _hasMips, | |
/// bgfx_texture_format_t _format, | |
/// uint64_t _flags, | |
/// const bgfx_memory_t *_mem) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_texture_3d", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_texture_handle_t bgfx_create_texture_3d(ushort _width, ushort _height, ushort _depth, bool _hasMips, bgfx_texture_format_t _format, ulong _flags, IntPtr _mem); | |
/// <summary> | |
/// bgfx_texture_handle_t bgfx_create_texture_cube(uint16_t _size, bool _hasMips, | |
/// uint16_t _numLayers, | |
/// bgfx_texture_format_t _format, | |
/// uint64_t _flags, | |
/// const bgfx_memory_t *_mem) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_texture_cube", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_texture_handle_t bgfx_create_texture_cube(ushort _size, bool _hasMips, ushort _numLayers, bgfx_texture_format_t _format, ulong _flags, IntPtr _mem); | |
/// <summary> | |
/// void bgfx_update_texture_2d(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) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_update_texture_2d", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_update_texture_2d(bgfx_texture_handle_t _handle, ushort _layer, char _mip, ushort _x, ushort _y, ushort _width, ushort _height, IntPtr _mem, ushort _pitch); | |
/// <summary> | |
/// void bgfx_update_texture_3d(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) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_update_texture_3d", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_update_texture_3d(bgfx_texture_handle_t _handle, char _mip, ushort _x, ushort _y, ushort _z, ushort _width, ushort _height, ushort _depth, IntPtr _mem); | |
/// <summary> | |
/// void bgfx_update_texture_cube(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) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_update_texture_cube", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_update_texture_cube(bgfx_texture_handle_t _handle, ushort _layer, char _side, char _mip, ushort _x, ushort _y, ushort _width, ushort _height, IntPtr _mem, ushort _pitch); | |
/// <summary> | |
/// uint32_t bgfx_read_texture(bgfx_texture_handle_t _handle, void *_data, | |
/// uint8_t _mip) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_read_texture", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_read_texture(bgfx_texture_handle_t _handle, IntPtr _data, char _mip); | |
/// <summary> | |
/// void bgfx_set_texture_name(bgfx_texture_handle_t _handle, const char *_name, | |
/// int32_t _len) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_texture_name", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_texture_name(bgfx_texture_handle_t _handle, IntPtr _name, int _len); | |
/// <summary> | |
/// void bgfx_destroy_texture(bgfx_texture_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_texture", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_texture(bgfx_texture_handle_t _handle); | |
/// <summary> | |
/// bgfx_frame_buffer_handle_t | |
///bgfx_create_frame_buffer(uint16_t _width, uint16_t _height, | |
/// bgfx_texture_format_t _format, uint64_t _textureFlags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_frame_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_frame_buffer_handle_t bgfx_create_frame_buffer(ushort _width, ushort _height, bgfx_texture_format_t _format, ulong _textureFlags); | |
/// <summary> | |
/// bgfx_frame_buffer_handle_t | |
///bgfx_create_frame_buffer_scaled(bgfx_backbuffer_ratio_t _ratio, | |
/// bgfx_texture_format_t _format, | |
/// uint64_t _textureFlags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_frame_buffer_scaled", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_frame_buffer_handle_t bgfx_create_frame_buffer_scaled(bgfx_backbuffer_ratio_t _ratio, bgfx_texture_format_t _format, ulong _textureFlags); | |
/// <summary> | |
/// bgfx_frame_buffer_handle_t bgfx_create_frame_buffer_from_handles( | |
/// uint8_t _num, const bgfx_texture_handle_t *_handles, bool _destroyTextures) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_frame_buffer_from_handles", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_frame_buffer_handle_t bgfx_create_frame_buffer_from_handles(char _num, IntPtr _handles, bool _destroyTextures); | |
/// <summary> | |
/// bgfx_frame_buffer_handle_t bgfx_create_frame_buffer_from_attachment( | |
/// uint8_t _num, const bgfx_attachment_t *_attachment, bool _destroyTextures) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_frame_buffer_from_attachment", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_frame_buffer_handle_t bgfx_create_frame_buffer_from_attachment(char _num, IntPtr _attachment, bool _destroyTextures); | |
/// <summary> | |
/// bgfx_frame_buffer_handle_t | |
///bgfx_create_frame_buffer_from_nwh(void *_nwh, uint16_t _width, uint16_t _height, | |
/// bgfx_texture_format_t _format, | |
/// bgfx_texture_format_t _depthFormat) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_frame_buffer_from_nwh", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_frame_buffer_handle_t bgfx_create_frame_buffer_from_nwh(IntPtr _nwh, ushort _width, ushort _height, bgfx_texture_format_t _format, bgfx_texture_format_t _depthFormat); | |
/// <summary> | |
/// bgfx_texture_handle_t bgfx_get_texture(bgfx_frame_buffer_handle_t _handle, | |
/// uint8_t _attachment) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_texture", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_texture_handle_t bgfx_get_texture(bgfx_frame_buffer_handle_t _handle, char _attachment); | |
/// <summary> | |
/// void bgfx_destroy_frame_buffer(bgfx_frame_buffer_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_frame_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_frame_buffer(bgfx_frame_buffer_handle_t _handle); | |
/// <summary> | |
/// bgfx_uniform_handle_t | |
///bgfx_create_uniform(const char *_name, bgfx_uniform_type_t _type, uint16_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_uniform", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_uniform_handle_t bgfx_create_uniform(IntPtr _name, bgfx_uniform_type_t _type, ushort _num); | |
/// <summary> | |
/// void bgfx_destroy_uniform(bgfx_uniform_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_uniform", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_uniform(bgfx_uniform_handle_t _handle); | |
/// <summary> | |
/// bgfx_occlusion_query_handle_t bgfx_create_occlusion_query() | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_create_occlusion_query", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_occlusion_query_handle_t bgfx_create_occlusion_query(); | |
/// <summary> | |
/// bgfx_occlusion_query_result_t | |
///bgfx_get_result(bgfx_occlusion_query_handle_t _handle, int32_t *_result) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_get_result", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern bgfx_occlusion_query_result_t bgfx_get_result(bgfx_occlusion_query_handle_t _handle, IntPtr _result); | |
/// <summary> | |
/// void bgfx_destroy_occlusion_query(bgfx_occlusion_query_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_destroy_occlusion_query", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_destroy_occlusion_query(bgfx_occlusion_query_handle_t _handle); | |
/// <summary> | |
/// void bgfx_set_palette_color(uint8_t _index, const float _rgba[4]) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_palette_color", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_palette_color(char _index, in float4 _rgba); | |
/// <summary> | |
/// void bgfx_set_view_name(bgfx_view_id_t _id, const char *_name) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_name", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_name(bgfx_view_id_t _id, IntPtr _name); | |
/// <summary> | |
/// void bgfx_set_view_rect(bgfx_view_id_t _id, uint16_t _x, uint16_t _y, | |
/// uint16_t _width, uint16_t _height) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_rect", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_rect(bgfx_view_id_t _id, ushort _x, ushort _y, ushort _width, ushort _height); | |
/// <summary> | |
/// void bgfx_set_view_rect_auto(bgfx_view_id_t _id, uint16_t _x, uint16_t _y, | |
/// bgfx_backbuffer_ratio_t _ratio) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_rect_auto", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_rect_auto(bgfx_view_id_t _id, ushort _x, ushort _y, bgfx_backbuffer_ratio_t _ratio); | |
/// <summary> | |
/// void bgfx_set_view_scissor(bgfx_view_id_t _id, uint16_t _x, uint16_t _y, | |
/// uint16_t _width, uint16_t _height) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_scissor", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_scissor(bgfx_view_id_t _id, ushort _x, ushort _y, ushort _width, ushort _height); | |
/// <summary> | |
/// void bgfx_set_view_clear(bgfx_view_id_t _id, uint16_t _flags, uint32_t _rgba, | |
/// float _depth, uint8_t _stencil) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_clear", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_clear(bgfx_view_id_t _id, ushort _flags, uint _rgba, float _depth, char _stencil); | |
/// <summary> | |
/// void bgfx_set_view_clear_mrt(bgfx_view_id_t _id, uint16_t _flags, float _depth, | |
/// uint8_t _stencil, uint8_t _0, uint8_t _1, | |
/// uint8_t _2, uint8_t _3, uint8_t _4, uint8_t _5, | |
/// uint8_t _6, uint8_t _7) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_clear_mrt", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_clear_mrt(bgfx_view_id_t _id, ushort _flags, float _depth, char _stencil, char _0, char _1, char _2, char _3, char _4, char _5, char _6, char _7); | |
/// <summary> | |
/// void bgfx_set_view_mode(bgfx_view_id_t _id, bgfx_view_mode_t _mode) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_mode", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_mode(bgfx_view_id_t _id, bgfx_view_mode_t _mode); | |
/// <summary> | |
/// void bgfx_set_view_frame_buffer(bgfx_view_id_t _id, | |
/// bgfx_frame_buffer_handle_t _handle) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_frame_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_frame_buffer(bgfx_view_id_t _id, bgfx_frame_buffer_handle_t _handle); | |
/// <summary> | |
/// void bgfx_set_view_transform(bgfx_view_id_t _id, const void *_view, | |
/// const void *_proj) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_transform", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_transform(bgfx_view_id_t _id, IntPtr _view, IntPtr _proj); | |
/// <summary> | |
/// void bgfx_set_view_transform_stereo(bgfx_view_id_t _id, const void *_view, | |
/// const void *_projL, uint8_t _flags, | |
/// const void *_projR) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_transform_stereo", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_transform_stereo(bgfx_view_id_t _id, IntPtr _view, IntPtr _projL, char _flags, IntPtr _projR); | |
/// <summary> | |
/// void bgfx_set_view_order(bgfx_view_id_t _id, uint16_t _num, | |
/// const bgfx_view_id_t *_order) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_view_order", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_view_order(bgfx_view_id_t _id, ushort _num, IntPtr _order); | |
/// <summary> | |
/// void bgfx_reset_view(bgfx_view_id_t _id) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_reset_view", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_reset_view(bgfx_view_id_t _id); | |
/// <summary> | |
/// void bgfx_set_marker(const char *_marker) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_marker", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_marker(IntPtr _marker); | |
/// <summary> | |
/// void bgfx_set_state(uint64_t _state, uint32_t _rgba) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_state", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_state(ulong _state, uint _rgba); | |
/// <summary> | |
/// void bgfx_set_condition(bgfx_occlusion_query_handle_t _handle, bool _visible) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_condition", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_condition(bgfx_occlusion_query_handle_t _handle, bool _visible); | |
/// <summary> | |
/// void bgfx_set_stencil(uint32_t _fstencil, uint32_t _bstencil) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_stencil", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_stencil(uint _fstencil, uint _bstencil); | |
/// <summary> | |
/// uint16_t bgfx_set_scissor(uint16_t _x, uint16_t _y, uint16_t _width, | |
/// uint16_t _height) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_scissor", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern ushort bgfx_set_scissor(ushort _x, ushort _y, ushort _width, ushort _height); | |
/// <summary> | |
/// void bgfx_set_scissor_cached(uint16_t _cache) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_scissor_cached", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_scissor_cached(ushort _cache); | |
/// <summary> | |
/// uint32_t bgfx_set_transform(const void *_mtx, uint16_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_transform", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_set_transform(IntPtr _mtx, ushort _num); | |
/// <summary> | |
/// uint32_t bgfx_alloc_transform(bgfx_transform_t *_transform, uint16_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_alloc_transform", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_alloc_transform(bgfx_transform_t * _transform, ushort _num); | |
/// <summary> | |
/// void bgfx_set_transform_cached(uint32_t _cache, uint16_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_transform_cached", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_transform_cached(uint _cache, ushort _num); | |
/// <summary> | |
/// void bgfx_set_uniform(bgfx_uniform_handle_t _handle, const void *_value, | |
/// uint16_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_uniform", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_uniform(bgfx_uniform_handle_t _handle, IntPtr _value, ushort _num); | |
/// <summary> | |
/// void bgfx_set_index_buffer(bgfx_index_buffer_handle_t _handle, | |
/// uint32_t _firstIndex, uint32_t _numIndices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_index_buffer(bgfx_index_buffer_handle_t _handle, uint _firstIndex, uint _numIndices); | |
/// <summary> | |
/// void bgfx_set_dynamic_index_buffer(bgfx_dynamic_index_buffer_handle_t _handle, | |
/// uint32_t _firstIndex, uint32_t _numIndices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_dynamic_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_dynamic_index_buffer(bgfx_dynamic_index_buffer_handle_t _handle, uint _firstIndex, uint _numIndices); | |
/// <summary> | |
/// void bgfx_set_transient_index_buffer(const bgfx_transient_index_buffer_t *_tib, | |
/// uint32_t _firstIndex, uint32_t _numIndices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_transient_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_transient_index_buffer(IntPtr _tib, uint _firstIndex, uint _numIndices); | |
/// <summary> | |
/// void bgfx_set_vertex_buffer(uint8_t _stream, | |
/// bgfx_vertex_buffer_handle_t _handle, | |
/// uint32_t _startVertex, uint32_t _numVertices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_vertex_buffer(char _stream, bgfx_vertex_buffer_handle_t _handle, uint _startVertex, uint _numVertices); | |
/// <summary> | |
/// void bgfx_set_dynamic_vertex_buffer(uint8_t _stream, | |
/// bgfx_dynamic_vertex_buffer_handle_t _handle, | |
/// uint32_t _startVertex, | |
/// uint32_t _numVertices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_dynamic_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_dynamic_vertex_buffer(char _stream, bgfx_dynamic_vertex_buffer_handle_t _handle, uint _startVertex, uint _numVertices); | |
/// <summary> | |
/// void bgfx_set_transient_vertex_buffer( | |
/// uint8_t _stream, const bgfx_transient_vertex_buffer_t *_tvb, | |
/// uint32_t _startVertex, uint32_t _numVertices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_transient_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_transient_vertex_buffer(char _stream, IntPtr _tvb, uint _startVertex, uint _numVertices); | |
/// <summary> | |
/// void bgfx_set_vertex_count(uint32_t _numVertices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_vertex_count", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_vertex_count(uint _numVertices); | |
/// <summary> | |
/// void bgfx_set_instance_data_buffer(const bgfx_instance_data_buffer_t *_idb, | |
/// uint32_t _start, uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_instance_data_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_instance_data_buffer(IntPtr _idb, uint _start, uint _num); | |
/// <summary> | |
/// void bgfx_set_instance_data_from_vertex_buffer( | |
/// bgfx_vertex_buffer_handle_t _handle, uint32_t _startVertex, uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_instance_data_from_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_instance_data_from_vertex_buffer(bgfx_vertex_buffer_handle_t _handle, uint _startVertex, uint _num); | |
/// <summary> | |
/// void bgfx_set_instance_data_from_dynamic_vertex_buffer( | |
/// bgfx_dynamic_vertex_buffer_handle_t _handle, uint32_t _startVertex, | |
/// uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_instance_data_from_dynamic_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_instance_data_from_dynamic_vertex_buffer(bgfx_dynamic_vertex_buffer_handle_t _handle, uint _startVertex, uint _num); | |
/// <summary> | |
/// void bgfx_set_texture(uint8_t _stage, bgfx_uniform_handle_t _sampler, | |
/// bgfx_texture_handle_t _handle, uint32_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_texture", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_texture(char _stage, bgfx_uniform_handle_t _sampler, bgfx_texture_handle_t _handle, uint _flags); | |
/// <summary> | |
/// void bgfx_touch(bgfx_view_id_t _id) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_touch", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_touch(bgfx_view_id_t _id); | |
/// <summary> | |
/// void bgfx_submit(bgfx_view_id_t _id, bgfx_program_handle_t _handle, | |
/// int32_t _depth, bool _preserveState) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_submit", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_submit(bgfx_view_id_t _id, bgfx_program_handle_t _handle, int _depth, bool _preserveState); | |
/// <summary> | |
/// void bgfx_submit_occlusion_query(bgfx_view_id_t _id, | |
/// bgfx_program_handle_t _program, | |
/// bgfx_occlusion_query_handle_t _occlusionQuery, | |
/// int32_t _depth, bool _preserveState) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_submit_occlusion_query", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_submit_occlusion_query(bgfx_view_id_t _id, bgfx_program_handle_t _program, bgfx_occlusion_query_handle_t _occlusionQuery, int _depth, bool _preserveState); | |
/// <summary> | |
/// void bgfx_submit_indirect(bgfx_view_id_t _id, bgfx_program_handle_t _handle, | |
/// bgfx_indirect_buffer_handle_t _indirectHandle, | |
/// uint16_t _start, uint16_t _num, int32_t _depth, | |
/// bool _preserveState) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_submit_indirect", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_submit_indirect(bgfx_view_id_t _id, bgfx_program_handle_t _handle, bgfx_indirect_buffer_handle_t _indirectHandle, ushort _start, ushort _num, int _depth, bool _preserveState); | |
/// <summary> | |
/// void bgfx_set_image(uint8_t _stage, bgfx_texture_handle_t _handle, uint8_t _mip, | |
/// bgfx_access_t _access, bgfx_texture_format_t _format) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_image", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_image(char _stage, bgfx_texture_handle_t _handle, char _mip, bgfx_access_t _access, bgfx_texture_format_t _format); | |
/// <summary> | |
/// void bgfx_set_compute_index_buffer(uint8_t _stage, | |
/// bgfx_index_buffer_handle_t _handle, | |
/// bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_compute_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_compute_index_buffer(char _stage, bgfx_index_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_set_compute_vertex_buffer(uint8_t _stage, | |
/// bgfx_vertex_buffer_handle_t _handle, | |
/// bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_compute_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_compute_vertex_buffer(char _stage, bgfx_vertex_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_set_compute_dynamic_index_buffer( | |
/// uint8_t _stage, bgfx_dynamic_index_buffer_handle_t _handle, | |
/// bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_compute_dynamic_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_compute_dynamic_index_buffer(char _stage, bgfx_dynamic_index_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_set_compute_dynamic_vertex_buffer( | |
/// uint8_t _stage, bgfx_dynamic_vertex_buffer_handle_t _handle, | |
/// bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_compute_dynamic_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_compute_dynamic_vertex_buffer(char _stage, bgfx_dynamic_vertex_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_set_compute_indirect_buffer(uint8_t _stage, | |
/// bgfx_indirect_buffer_handle_t _handle, | |
/// bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_set_compute_indirect_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_set_compute_indirect_buffer(char _stage, bgfx_indirect_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_dispatch(bgfx_view_id_t _id, bgfx_program_handle_t _handle, | |
/// uint32_t _numX, uint32_t _numY, uint32_t _numZ, | |
/// uint8_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_dispatch", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_dispatch(bgfx_view_id_t _id, bgfx_program_handle_t _handle, uint _numX, uint _numY, uint _numZ, char _flags); | |
/// <summary> | |
/// void bgfx_dispatch_indirect(bgfx_view_id_t _id, bgfx_program_handle_t _handle, | |
/// bgfx_indirect_buffer_handle_t _indirectHandle, | |
/// uint16_t _start, uint16_t _num, uint8_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_dispatch_indirect", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_dispatch_indirect(bgfx_view_id_t _id, bgfx_program_handle_t _handle, bgfx_indirect_buffer_handle_t _indirectHandle, ushort _start, ushort _num, char _flags); | |
/// <summary> | |
/// void bgfx_discard() | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_discard", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_discard(); | |
/// <summary> | |
/// 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) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_blit", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_blit(bgfx_view_id_t _id, bgfx_texture_handle_t _dst, char _dstMip, ushort _dstX, ushort _dstY, ushort _dstZ, bgfx_texture_handle_t _src, char _srcMip, ushort _srcX, ushort _srcY, ushort _srcZ, ushort _width, ushort _height, ushort _depth); | |
/// <summary> | |
/// void bgfx_encoder_set_marker(struct bgfx_encoder_s *_encoder, | |
/// const char *_marker) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_marker", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_marker(IntPtr _encoder, IntPtr _marker); | |
/// <summary> | |
/// void bgfx_encoder_set_state(struct bgfx_encoder_s *_encoder, uint64_t _state, | |
/// uint32_t _rgba) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_state", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_state(IntPtr _encoder, ulong _state, uint _rgba); | |
/// <summary> | |
/// void bgfx_encoder_set_condition(struct bgfx_encoder_s *_encoder, | |
/// bgfx_occlusion_query_handle_t _handle, | |
/// bool _visible) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_condition", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_condition(IntPtr _encoder, bgfx_occlusion_query_handle_t _handle, bool _visible); | |
/// <summary> | |
/// void bgfx_encoder_set_stencil(struct bgfx_encoder_s *_encoder, | |
/// uint32_t _fstencil, uint32_t _bstencil) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_stencil", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_stencil(IntPtr _encoder, uint _fstencil, uint _bstencil); | |
/// <summary> | |
/// uint16_t bgfx_encoder_set_scissor(struct bgfx_encoder_s *_encoder, uint16_t _x, | |
/// uint16_t _y, uint16_t _width, | |
/// uint16_t _height) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_scissor", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern ushort bgfx_encoder_set_scissor(IntPtr _encoder, ushort _x, ushort _y, ushort _width, ushort _height); | |
/// <summary> | |
/// void bgfx_encoder_set_scissor_cached(struct bgfx_encoder_s *_encoder, | |
/// uint16_t _cache) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_scissor_cached", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_scissor_cached(IntPtr _encoder, ushort _cache); | |
/// <summary> | |
/// uint32_t bgfx_encoder_set_transform(struct bgfx_encoder_s *_encoder, | |
/// const void *_mtx, uint16_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_transform", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_encoder_set_transform(IntPtr _encoder, IntPtr _mtx, ushort _num); | |
/// <summary> | |
/// uint32_t bgfx_encoder_alloc_transform(struct bgfx_encoder_s *_encoder, | |
/// bgfx_transform_t *_transform, | |
/// uint16_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_alloc_transform", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern uint bgfx_encoder_alloc_transform(IntPtr _encoder, bgfx_transform_t * _transform, ushort _num); | |
/// <summary> | |
/// void bgfx_encoder_set_transform_cached(struct bgfx_encoder_s *_encoder, | |
/// uint32_t _cache, uint16_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_transform_cached", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_transform_cached(IntPtr _encoder, uint _cache, ushort _num); | |
/// <summary> | |
/// void bgfx_encoder_set_uniform(struct bgfx_encoder_s *_encoder, | |
/// bgfx_uniform_handle_t _handle, const void *_value, | |
/// uint16_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_uniform", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_uniform(IntPtr _encoder, bgfx_uniform_handle_t _handle, IntPtr _value, ushort _num); | |
/// <summary> | |
/// void bgfx_encoder_set_index_buffer(struct bgfx_encoder_s *_encoder, | |
/// bgfx_index_buffer_handle_t _handle, | |
/// uint32_t _firstIndex, uint32_t _numIndices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_index_buffer(IntPtr _encoder, bgfx_index_buffer_handle_t _handle, uint _firstIndex, uint _numIndices); | |
/// <summary> | |
/// void bgfx_encoder_set_dynamic_index_buffer( | |
/// struct bgfx_encoder_s *_encoder, bgfx_dynamic_index_buffer_handle_t _handle, | |
/// uint32_t _firstIndex, uint32_t _numIndices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_dynamic_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_dynamic_index_buffer(IntPtr _encoder, bgfx_dynamic_index_buffer_handle_t _handle, uint _firstIndex, uint _numIndices); | |
/// <summary> | |
/// void bgfx_encoder_set_transient_index_buffer( | |
/// struct bgfx_encoder_s *_encoder, const bgfx_transient_index_buffer_t *_tib, | |
/// uint32_t _firstIndex, uint32_t _numIndices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_transient_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_transient_index_buffer(IntPtr _encoder, IntPtr _tib, uint _firstIndex, uint _numIndices); | |
/// <summary> | |
/// void bgfx_encoder_set_vertex_buffer(struct bgfx_encoder_s *_encoder, | |
/// uint8_t _stream, | |
/// bgfx_vertex_buffer_handle_t _handle, | |
/// uint32_t _startVertex, | |
/// uint32_t _numVertices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_vertex_buffer(IntPtr _encoder, char _stream, bgfx_vertex_buffer_handle_t _handle, uint _startVertex, uint _numVertices); | |
/// <summary> | |
/// void bgfx_encoder_set_dynamic_vertex_buffer( | |
/// struct bgfx_encoder_s *_encoder, uint8_t _stream, | |
/// bgfx_dynamic_vertex_buffer_handle_t _handle, uint32_t _startVertex, | |
/// uint32_t _numVertices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_dynamic_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_dynamic_vertex_buffer(IntPtr _encoder, char _stream, bgfx_dynamic_vertex_buffer_handle_t _handle, uint _startVertex, uint _numVertices); | |
/// <summary> | |
/// void bgfx_encoder_set_transient_vertex_buffer( | |
/// struct bgfx_encoder_s *_encoder, uint8_t _stream, | |
/// const bgfx_transient_vertex_buffer_t *_tvb, uint32_t _startVertex, | |
/// uint32_t _numVertices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_transient_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_transient_vertex_buffer(IntPtr _encoder, char _stream, IntPtr _tvb, uint _startVertex, uint _numVertices); | |
/// <summary> | |
/// void bgfx_encoder_set_vertex_count(struct bgfx_encoder_s *_encoder, | |
/// uint32_t _numVertices) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_vertex_count", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_vertex_count(IntPtr _encoder, uint _numVertices); | |
/// <summary> | |
/// void bgfx_encoder_set_instance_data_buffer( | |
/// struct bgfx_encoder_s *_encoder, const bgfx_instance_data_buffer_t *_idb, | |
/// uint32_t _start, uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_instance_data_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_instance_data_buffer(IntPtr _encoder, IntPtr _idb, uint _start, uint _num); | |
/// <summary> | |
/// void bgfx_encoder_set_instance_data_from_vertex_buffer( | |
/// struct bgfx_encoder_s *_encoder, bgfx_vertex_buffer_handle_t _handle, | |
/// uint32_t _startVertex, uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_instance_data_from_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_instance_data_from_vertex_buffer(IntPtr _encoder, bgfx_vertex_buffer_handle_t _handle, uint _startVertex, uint _num); | |
/// <summary> | |
/// void bgfx_encoder_set_instance_data_from_dynamic_vertex_buffer( | |
/// struct bgfx_encoder_s *_encoder, | |
/// bgfx_dynamic_vertex_buffer_handle_t _handle, uint32_t _startVertex, | |
/// uint32_t _num) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_instance_data_from_dynamic_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_instance_data_from_dynamic_vertex_buffer(IntPtr _encoder, bgfx_dynamic_vertex_buffer_handle_t _handle, uint _startVertex, uint _num); | |
/// <summary> | |
/// void bgfx_encoder_set_texture(struct bgfx_encoder_s *_encoder, uint8_t _stage, | |
/// bgfx_uniform_handle_t _sampler, | |
/// bgfx_texture_handle_t _handle, uint32_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_texture", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_texture(IntPtr _encoder, char _stage, bgfx_uniform_handle_t _sampler, bgfx_texture_handle_t _handle, uint _flags); | |
/// <summary> | |
/// void bgfx_encoder_touch(struct bgfx_encoder_s *_encoder, bgfx_view_id_t _id) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_touch", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_touch(IntPtr _encoder, bgfx_view_id_t _id); | |
/// <summary> | |
/// void bgfx_encoder_submit(struct bgfx_encoder_s *_encoder, bgfx_view_id_t _id, | |
/// bgfx_program_handle_t _handle, int32_t _depth, | |
/// bool _preserveState) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_submit", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_submit(IntPtr _encoder, bgfx_view_id_t _id, bgfx_program_handle_t _handle, int _depth, bool _preserveState); | |
/// <summary> | |
/// void bgfx_encoder_submit_occlusion_query( | |
/// struct bgfx_encoder_s *_encoder, bgfx_view_id_t _id, | |
/// bgfx_program_handle_t _program, | |
/// bgfx_occlusion_query_handle_t _occlusionQuery, int32_t _depth, | |
/// bool _preserveState) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_submit_occlusion_query", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_submit_occlusion_query(IntPtr _encoder, bgfx_view_id_t _id, bgfx_program_handle_t _program, bgfx_occlusion_query_handle_t _occlusionQuery, int _depth, bool _preserveState); | |
/// <summary> | |
/// void bgfx_encoder_submit_indirect(struct bgfx_encoder_s *_encoder, | |
/// bgfx_view_id_t _id, | |
/// bgfx_program_handle_t _handle, | |
/// bgfx_indirect_buffer_handle_t _indirectHandle, | |
/// uint16_t _start, uint16_t _num, | |
/// int32_t _depth, bool _preserveState) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_submit_indirect", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_submit_indirect(IntPtr _encoder, bgfx_view_id_t _id, bgfx_program_handle_t _handle, bgfx_indirect_buffer_handle_t _indirectHandle, ushort _start, ushort _num, int _depth, bool _preserveState); | |
/// <summary> | |
/// void bgfx_encoder_set_image(struct bgfx_encoder_s *_encoder, uint8_t _stage, | |
/// bgfx_texture_handle_t _handle, uint8_t _mip, | |
/// bgfx_access_t _access, | |
/// bgfx_texture_format_t _format) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_image", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_image(IntPtr _encoder, char _stage, bgfx_texture_handle_t _handle, char _mip, bgfx_access_t _access, bgfx_texture_format_t _format); | |
/// <summary> | |
/// void bgfx_encoder_set_compute_index_buffer(struct bgfx_encoder_s *_encoder, | |
/// uint8_t _stage, | |
/// bgfx_index_buffer_handle_t _handle, | |
/// bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_compute_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_compute_index_buffer(IntPtr _encoder, char _stage, bgfx_index_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_encoder_set_compute_vertex_buffer(struct bgfx_encoder_s *_encoder, | |
/// uint8_t _stage, | |
/// bgfx_vertex_buffer_handle_t _handle, | |
/// bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_compute_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_compute_vertex_buffer(IntPtr _encoder, char _stage, bgfx_vertex_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_encoder_set_compute_dynamic_index_buffer( | |
/// struct bgfx_encoder_s *_encoder, uint8_t _stage, | |
/// bgfx_dynamic_index_buffer_handle_t _handle, bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_compute_dynamic_index_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_compute_dynamic_index_buffer(IntPtr _encoder, char _stage, bgfx_dynamic_index_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_encoder_set_compute_dynamic_vertex_buffer( | |
/// struct bgfx_encoder_s *_encoder, uint8_t _stage, | |
/// bgfx_dynamic_vertex_buffer_handle_t _handle, bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_compute_dynamic_vertex_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_compute_dynamic_vertex_buffer(IntPtr _encoder, char _stage, bgfx_dynamic_vertex_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_encoder_set_compute_indirect_buffer( | |
/// struct bgfx_encoder_s *_encoder, uint8_t _stage, | |
/// bgfx_indirect_buffer_handle_t _handle, bgfx_access_t _access) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_set_compute_indirect_buffer", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_set_compute_indirect_buffer(IntPtr _encoder, char _stage, bgfx_indirect_buffer_handle_t _handle, bgfx_access_t _access); | |
/// <summary> | |
/// void bgfx_encoder_dispatch(struct bgfx_encoder_s *_encoder, bgfx_view_id_t _id, | |
/// bgfx_program_handle_t _handle, uint32_t _numX, | |
/// uint32_t _numY, uint32_t _numZ, uint8_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_dispatch", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_dispatch(IntPtr _encoder, bgfx_view_id_t _id, bgfx_program_handle_t _handle, uint _numX, uint _numY, uint _numZ, char _flags); | |
/// <summary> | |
/// void bgfx_encoder_dispatch_indirect( | |
/// struct bgfx_encoder_s *_encoder, bgfx_view_id_t _id, | |
/// bgfx_program_handle_t _handle, | |
/// bgfx_indirect_buffer_handle_t _indirectHandle, uint16_t _start, | |
/// uint16_t _num, uint8_t _flags) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_dispatch_indirect", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_dispatch_indirect(IntPtr _encoder, bgfx_view_id_t _id, bgfx_program_handle_t _handle, bgfx_indirect_buffer_handle_t _indirectHandle, ushort _start, ushort _num, char _flags); | |
/// <summary> | |
/// void bgfx_encoder_discard(struct bgfx_encoder_s *_encoder) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_discard", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_discard(IntPtr _encoder); | |
/// <summary> | |
/// void bgfx_encoder_blit(struct bgfx_encoder_s *_encoder, 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) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_encoder_blit", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_encoder_blit(IntPtr _encoder, bgfx_view_id_t _id, bgfx_texture_handle_t _dst, char _dstMip, ushort _dstX, ushort _dstY, ushort _dstZ, bgfx_texture_handle_t _src, char _srcMip, ushort _srcX, ushort _srcY, ushort _srcZ, ushort _width, ushort _height, ushort _depth); | |
/// <summary> | |
/// void bgfx_request_screen_shot(bgfx_frame_buffer_handle_t _handle, | |
/// const char *_filePath) | |
/// </summary> | |
[DllImport("bgfx", EntryPoint = "bgfx_request_screen_shot", CallingConvention=CallingConvention.Cdecl)] | |
public static unsafe extern void bgfx_request_screen_shot(bgfx_frame_buffer_handle_t _handle, IntPtr _filePath); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment