This commit is contained in:
Бранимир Караџић
2020-12-02 21:08:25 -08:00
parent 0714e7c41e
commit 8dd39d42df
5 changed files with 96 additions and 109 deletions

View File

@@ -1039,111 +1039,106 @@ public static class bgfx
/// </summary>
FragmentOrdering = 0x0000000000000040,
/// <summary>
/// Image Read/Write is supported.
/// </summary>
ImageRw = 0x0000000000000080,
/// <summary>
/// Graphics debugger is present.
/// </summary>
GraphicsDebugger = 0x0000000000000100,
Reserved = 0x0000000000000200,
GraphicsDebugger = 0x0000000000000080,
/// <summary>
/// HDR10 rendering is supported.
/// </summary>
Hdr10 = 0x0000000000000400,
Hdr10 = 0x0000000000000100,
/// <summary>
/// HiDPI rendering is supported.
/// </summary>
Hidpi = 0x0000000000000800,
Hidpi = 0x0000000000000200,
/// <summary>
/// Image Read/Write is supported.
/// </summary>
ImageRw = 0x0000000000000400,
/// <summary>
/// 32-bit indices are supported.
/// </summary>
Index32 = 0x0000000000001000,
Index32 = 0x0000000000000800,
/// <summary>
/// Instancing is supported.
/// </summary>
Instancing = 0x0000000000002000,
Instancing = 0x0000000000001000,
/// <summary>
/// Occlusion query is supported.
/// </summary>
OcclusionQuery = 0x0000000000004000,
OcclusionQuery = 0x0000000000002000,
/// <summary>
/// Renderer is on separate thread.
/// </summary>
RendererMultithreaded = 0x0000000000008000,
RendererMultithreaded = 0x0000000000004000,
/// <summary>
/// Multiple windows are supported.
/// </summary>
SwapChain = 0x0000000000010000,
SwapChain = 0x0000000000008000,
/// <summary>
/// 2D texture array is supported.
/// </summary>
Texture2dArray = 0x0000000000020000,
Texture2dArray = 0x0000000000010000,
/// <summary>
/// 3D textures are supported.
/// </summary>
Texture3d = 0x0000000000040000,
Texture3d = 0x0000000000020000,
/// <summary>
/// Texture blit is supported.
/// </summary>
TextureBlit = 0x0000000000080000,
/// <summary>
/// All texture compare modes are supported.
/// </summary>
TextureCompareReserved = 0x0000000000100000,
TextureBlit = 0x0000000000040000,
TextureCompareReserved = 0x0000000000080000,
/// <summary>
/// Texture compare less equal mode is supported.
/// </summary>
TextureCompareLequal = 0x0000000000200000,
TextureCompareLequal = 0x0000000000100000,
/// <summary>
/// Cubemap texture array is supported.
/// </summary>
TextureCubeArray = 0x0000000000400000,
TextureCubeArray = 0x0000000000200000,
/// <summary>
/// CPU direct access to GPU texture memory.
/// </summary>
TextureDirectAccess = 0x0000000000800000,
TextureDirectAccess = 0x0000000000400000,
/// <summary>
/// Read-back texture is supported.
/// </summary>
TextureReadBack = 0x0000000001000000,
TextureReadBack = 0x0000000000800000,
/// <summary>
/// Vertex attribute half-float is supported.
/// </summary>
VertexAttribHalf = 0x0000000002000000,
VertexAttribHalf = 0x0000000001000000,
/// <summary>
/// Vertex attribute 10_10_10_2 is supported.
/// </summary>
VertexAttribUint10 = 0x0000000004000000,
VertexAttribUint10 = 0x0000000002000000,
/// <summary>
/// Rendering with VertexID only is supported.
/// </summary>
VertexId = 0x0000000008000000,
VertexId = 0x0000000004000000,
/// <summary>
/// All texture compare modes are supported.
/// </summary>
TextureCompareAll = 0x0000000000300000,
TextureCompareAll = 0x0000000000180000,
}
[AllowDuplicates]

View File

@@ -1040,111 +1040,106 @@ public static partial class bgfx
/// </summary>
FragmentOrdering = 0x0000000000000040,
/// <summary>
/// Image Read/Write is supported.
/// </summary>
ImageRw = 0x0000000000000080,
/// <summary>
/// Graphics debugger is present.
/// </summary>
GraphicsDebugger = 0x0000000000000100,
Reserved = 0x0000000000000200,
GraphicsDebugger = 0x0000000000000080,
/// <summary>
/// HDR10 rendering is supported.
/// </summary>
Hdr10 = 0x0000000000000400,
Hdr10 = 0x0000000000000100,
/// <summary>
/// HiDPI rendering is supported.
/// </summary>
Hidpi = 0x0000000000000800,
Hidpi = 0x0000000000000200,
/// <summary>
/// Image Read/Write is supported.
/// </summary>
ImageRw = 0x0000000000000400,
/// <summary>
/// 32-bit indices are supported.
/// </summary>
Index32 = 0x0000000000001000,
Index32 = 0x0000000000000800,
/// <summary>
/// Instancing is supported.
/// </summary>
Instancing = 0x0000000000002000,
Instancing = 0x0000000000001000,
/// <summary>
/// Occlusion query is supported.
/// </summary>
OcclusionQuery = 0x0000000000004000,
OcclusionQuery = 0x0000000000002000,
/// <summary>
/// Renderer is on separate thread.
/// </summary>
RendererMultithreaded = 0x0000000000008000,
RendererMultithreaded = 0x0000000000004000,
/// <summary>
/// Multiple windows are supported.
/// </summary>
SwapChain = 0x0000000000010000,
SwapChain = 0x0000000000008000,
/// <summary>
/// 2D texture array is supported.
/// </summary>
Texture2dArray = 0x0000000000020000,
Texture2dArray = 0x0000000000010000,
/// <summary>
/// 3D textures are supported.
/// </summary>
Texture3d = 0x0000000000040000,
Texture3d = 0x0000000000020000,
/// <summary>
/// Texture blit is supported.
/// </summary>
TextureBlit = 0x0000000000080000,
/// <summary>
/// All texture compare modes are supported.
/// </summary>
TextureCompareReserved = 0x0000000000100000,
TextureBlit = 0x0000000000040000,
TextureCompareReserved = 0x0000000000080000,
/// <summary>
/// Texture compare less equal mode is supported.
/// </summary>
TextureCompareLequal = 0x0000000000200000,
TextureCompareLequal = 0x0000000000100000,
/// <summary>
/// Cubemap texture array is supported.
/// </summary>
TextureCubeArray = 0x0000000000400000,
TextureCubeArray = 0x0000000000200000,
/// <summary>
/// CPU direct access to GPU texture memory.
/// </summary>
TextureDirectAccess = 0x0000000000800000,
TextureDirectAccess = 0x0000000000400000,
/// <summary>
/// Read-back texture is supported.
/// </summary>
TextureReadBack = 0x0000000001000000,
TextureReadBack = 0x0000000000800000,
/// <summary>
/// Vertex attribute half-float is supported.
/// </summary>
VertexAttribHalf = 0x0000000002000000,
VertexAttribHalf = 0x0000000001000000,
/// <summary>
/// Vertex attribute 10_10_10_2 is supported.
/// </summary>
VertexAttribUint10 = 0x0000000004000000,
VertexAttribUint10 = 0x0000000002000000,
/// <summary>
/// Rendering with VertexID only is supported.
/// </summary>
VertexId = 0x0000000008000000,
VertexId = 0x0000000004000000,
/// <summary>
/// All texture compare modes are supported.
/// </summary>
TextureCompareAll = 0x0000000000300000,
TextureCompareAll = 0x0000000000180000,
}
[Flags]

View File

@@ -10,7 +10,7 @@ public import core.stdc.stdarg : va_list;
extern(C) @nogc nothrow:
enum uint BGFX_API_VERSION = 109;
enum uint BGFX_API_VERSION = 110;
alias bgfx_view_id_t = ushort;
@@ -354,28 +354,27 @@ enum ulong BGFX_CAPS_CONSERVATIVE_RASTER = 0x0000000000000008; /// Conservative
enum ulong BGFX_CAPS_DRAW_INDIRECT = 0x0000000000000010; /// Draw indirect is supported.
enum ulong BGFX_CAPS_FRAGMENT_DEPTH = 0x0000000000000020; /// Fragment depth is accessible in fragment shader.
enum ulong BGFX_CAPS_FRAGMENT_ORDERING = 0x0000000000000040; /// Fragment ordering is available in fragment shader.
enum ulong BGFX_CAPS_IMAGE_RW = 0x0000000000000080; /// Image Read/Write is supported.
enum ulong BGFX_CAPS_GRAPHICS_DEBUGGER = 0x0000000000000100; /// Graphics debugger is present.
enum ulong BGFX_CAPS_RESERVED = 0x0000000000000200;
enum ulong BGFX_CAPS_HDR10 = 0x0000000000000400; /// HDR10 rendering is supported.
enum ulong BGFX_CAPS_HIDPI = 0x0000000000000800; /// HiDPI rendering is supported.
enum ulong BGFX_CAPS_INDEX32 = 0x0000000000001000; /// 32-bit indices are supported.
enum ulong BGFX_CAPS_INSTANCING = 0x0000000000002000; /// Instancing is supported.
enum ulong BGFX_CAPS_OCCLUSION_QUERY = 0x0000000000004000; /// Occlusion query is supported.
enum ulong BGFX_CAPS_RENDERER_MULTITHREADED = 0x0000000000008000; /// Renderer is on separate thread.
enum ulong BGFX_CAPS_SWAP_CHAIN = 0x0000000000010000; /// Multiple windows are supported.
enum ulong BGFX_CAPS_TEXTURE_2D_ARRAY = 0x0000000000020000; /// 2D texture array is supported.
enum ulong BGFX_CAPS_TEXTURE_3D = 0x0000000000040000; /// 3D textures are supported.
enum ulong BGFX_CAPS_TEXTURE_BLIT = 0x0000000000080000; /// Texture blit is supported.
enum ulong BGFX_CAPS_TEXTURE_COMPARE_RESERVED = 0x0000000000100000; /// All texture compare modes are supported.
enum ulong BGFX_CAPS_TEXTURE_COMPARE_LEQUAL = 0x0000000000200000; /// Texture compare less equal mode is supported.
enum ulong BGFX_CAPS_TEXTURE_CUBE_ARRAY = 0x0000000000400000; /// Cubemap texture array is supported.
enum ulong BGFX_CAPS_TEXTURE_DIRECT_ACCESS = 0x0000000000800000; /// CPU direct access to GPU texture memory.
enum ulong BGFX_CAPS_TEXTURE_READ_BACK = 0x0000000001000000; /// Read-back texture is supported.
enum ulong BGFX_CAPS_VERTEX_ATTRIB_HALF = 0x0000000002000000; /// Vertex attribute half-float is supported.
enum ulong BGFX_CAPS_VERTEX_ATTRIB_UINT10 = 0x0000000004000000; /// Vertex attribute 10_10_10_2 is supported.
enum ulong BGFX_CAPS_VERTEX_ID = 0x0000000008000000; /// Rendering with VertexID only is supported.
enum ulong BGFX_CAPS_TEXTURE_COMPARE_ALL = 0x0000000000300000; /// All texture compare modes are supported.
enum ulong BGFX_CAPS_GRAPHICS_DEBUGGER = 0x0000000000000080; /// Graphics debugger is present.
enum ulong BGFX_CAPS_HDR10 = 0x0000000000000100; /// HDR10 rendering is supported.
enum ulong BGFX_CAPS_HIDPI = 0x0000000000000200; /// HiDPI rendering is supported.
enum ulong BGFX_CAPS_IMAGE_RW = 0x0000000000000400; /// Image Read/Write is supported.
enum ulong BGFX_CAPS_INDEX32 = 0x0000000000000800; /// 32-bit indices are supported.
enum ulong BGFX_CAPS_INSTANCING = 0x0000000000001000; /// Instancing is supported.
enum ulong BGFX_CAPS_OCCLUSION_QUERY = 0x0000000000002000; /// Occlusion query is supported.
enum ulong BGFX_CAPS_RENDERER_MULTITHREADED = 0x0000000000004000; /// Renderer is on separate thread.
enum ulong BGFX_CAPS_SWAP_CHAIN = 0x0000000000008000; /// Multiple windows are supported.
enum ulong BGFX_CAPS_TEXTURE_2D_ARRAY = 0x0000000000010000; /// 2D texture array is supported.
enum ulong BGFX_CAPS_TEXTURE_3D = 0x0000000000020000; /// 3D textures are supported.
enum ulong BGFX_CAPS_TEXTURE_BLIT = 0x0000000000040000; /// Texture blit is supported.
enum ulong BGFX_CAPS_TEXTURE_COMPARE_RESERVED = 0x0000000000080000;
enum ulong BGFX_CAPS_TEXTURE_COMPARE_LEQUAL = 0x0000000000100000; /// Texture compare less equal mode is supported.
enum ulong BGFX_CAPS_TEXTURE_CUBE_ARRAY = 0x0000000000200000; /// Cubemap texture array is supported.
enum ulong BGFX_CAPS_TEXTURE_DIRECT_ACCESS = 0x0000000000400000; /// CPU direct access to GPU texture memory.
enum ulong BGFX_CAPS_TEXTURE_READ_BACK = 0x0000000000800000; /// Read-back texture is supported.
enum ulong BGFX_CAPS_VERTEX_ATTRIB_HALF = 0x0000000001000000; /// Vertex attribute half-float is supported.
enum ulong BGFX_CAPS_VERTEX_ATTRIB_UINT10 = 0x0000000002000000; /// Vertex attribute 10_10_10_2 is supported.
enum ulong BGFX_CAPS_VERTEX_ID = 0x0000000004000000; /// Rendering with VertexID only is supported.
enum ulong BGFX_CAPS_TEXTURE_COMPARE_ALL = 0x0000000000180000; /// All texture compare modes are supported.
enum uint BGFX_CAPS_FORMAT_TEXTURE_NONE = 0x00000000; /// Texture format is not supported.
enum uint BGFX_CAPS_FORMAT_TEXTURE_2D = 0x00000001; /// Texture format is supported.