Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Runtime.InteropServices;
using System.Text;
namespace SharpC
{
partial struct CharPtr
{
public CharPtr(IntPtr ptr) => this.Ptr = ptr;
IntPtr Ptr { get; }
using System;
using System.Runtime.InteropServices;
using SharpC;
namespace FlecsSharp
{
#region Enums
//EcsSystemKind
public enum EcsSystemKind : Int32
{
@raizam
raizam / PatriciaTrie.cs
Created April 18, 2019 13:55
Single file PatriciaTrie extracted from trienet (https://github.com/gmamaladze/trienet/tree/master/TrieNet).
// This code is distributed under MIT license. Copyright (c) 2013 George Mamaladze
// See license.txt or http://opensource.org/licenses/mit-license.php
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System;
using System.Runtime.InteropServices;
using static LowSharp;
namespace LLVM
{
#region Enums
//LLVMVerifierFailureAction
public enum LLVMVerifierFailureAction : Int32
{
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
D3D11 WARNING: ID3D11VertexShader::SetPrivateData: Existing private data of same name with different size found! [ STATE_SETTING WARNING #55: SETPRIVATEDATA_CHANGINGPARAMS]
e:\github\rbgfx\src\renderer_d3d11.cpp (3907): BGFX Fragment Shader consts 0
D3D11 WARNING: ID3D11PixelShader::SetPrivateData: Existing private data of same name with different size found! [ STATE_SETTING WARNING #55: SETPRIVATEDATA_CHANGINGPARAMS]
e:\github\rbgfx\src\bgfx.cpp (518): BGFX vertexdecl 74c34f26 (d443ed7f), stride 28
e:\github\rbgfx\src\bgfx.cpp (538): BGFX attr 0 - Attrib::Position, num 3, type 4, norm 0, asint 0, offset 0
e:\github\rbgfx\src\bgfx.cpp (538): BGFX attr 4 - Attrib::Color0, num 4, type 0, norm 1, asint 0, offset 12
e:\github\rbgfx\src\bgfx.cpp (538): BGFX attr 5 - Attrib::Color1, num 4, type 0, norm 1, asint 0, offset 16
e:\github\rbgfx\src\bgfx.cpp (538): BGFX attr 10 - Attrib::TexCoord0, num 2, type 4, norm 0, asint 0, offset 20
e:\github\rbgfx\src\renderer_d3d11.cpp (3907): BGFX Vertex Shader consts 1
e:\
{
"libName": "SlimBgfx",
"includeDirs": [
"E:\\github\\bgfx\\include",
"E:\\github\\bx\\include",
"E:\\github\\bgfx\\examples\\common",
"E:\\github\\bx\\include\\compat\\msvc",
"E:\\github\\bimg\\include"
],
"defines": [
using System;
using System.Runtime.InteropServices;
using static LowSharp;
namespace LibVulkan
{
//VkAccelerationStructureMemoryRequirementsTypeNV
public enum VkAccelerationStructureMemoryRequirementsTypeNV : Int32
{
ObjectNv = 0,
public unsafe partial struct Capabilities : IDisposable
{
//bgfx_caps_t
private Capabilities(Data* ptr)
{
this.ptr = ptr;
}
public static Capabilities New(Data val = default)
{
using System;
using System.Runtime.InteropServices;
namespace LibGlfw
{
public enum Keys
{
KeyUnknown = -1,
KeySpace = 32,
KeyApostrophe = 39,