diff --git a/bindings/bf/bgfx.bf b/bindings/bf/bgfx.bf
index 1a31bba96..20d2e124b 100644
--- a/bindings/bf/bgfx.bf
+++ b/bindings/bf/bgfx.bf
@@ -1039,111 +1039,106 @@ public static class bgfx
///
FragmentOrdering = 0x0000000000000040,
- ///
- /// Image Read/Write is supported.
- ///
- ImageRw = 0x0000000000000080,
-
///
/// Graphics debugger is present.
///
- GraphicsDebugger = 0x0000000000000100,
- Reserved = 0x0000000000000200,
+ GraphicsDebugger = 0x0000000000000080,
///
/// HDR10 rendering is supported.
///
- Hdr10 = 0x0000000000000400,
+ Hdr10 = 0x0000000000000100,
///
/// HiDPI rendering is supported.
///
- Hidpi = 0x0000000000000800,
+ Hidpi = 0x0000000000000200,
+
+ ///
+ /// Image Read/Write is supported.
+ ///
+ ImageRw = 0x0000000000000400,
///
/// 32-bit indices are supported.
///
- Index32 = 0x0000000000001000,
+ Index32 = 0x0000000000000800,
///
/// Instancing is supported.
///
- Instancing = 0x0000000000002000,
+ Instancing = 0x0000000000001000,
///
/// Occlusion query is supported.
///
- OcclusionQuery = 0x0000000000004000,
+ OcclusionQuery = 0x0000000000002000,
///
/// Renderer is on separate thread.
///
- RendererMultithreaded = 0x0000000000008000,
+ RendererMultithreaded = 0x0000000000004000,
///
/// Multiple windows are supported.
///
- SwapChain = 0x0000000000010000,
+ SwapChain = 0x0000000000008000,
///
/// 2D texture array is supported.
///
- Texture2dArray = 0x0000000000020000,
+ Texture2dArray = 0x0000000000010000,
///
/// 3D textures are supported.
///
- Texture3d = 0x0000000000040000,
+ Texture3d = 0x0000000000020000,
///
/// Texture blit is supported.
///
- TextureBlit = 0x0000000000080000,
-
- ///
- /// All texture compare modes are supported.
- ///
- TextureCompareReserved = 0x0000000000100000,
+ TextureBlit = 0x0000000000040000,
+ TextureCompareReserved = 0x0000000000080000,
///
/// Texture compare less equal mode is supported.
///
- TextureCompareLequal = 0x0000000000200000,
+ TextureCompareLequal = 0x0000000000100000,
///
/// Cubemap texture array is supported.
///
- TextureCubeArray = 0x0000000000400000,
+ TextureCubeArray = 0x0000000000200000,
///
/// CPU direct access to GPU texture memory.
///
- TextureDirectAccess = 0x0000000000800000,
+ TextureDirectAccess = 0x0000000000400000,
///
/// Read-back texture is supported.
///
- TextureReadBack = 0x0000000001000000,
+ TextureReadBack = 0x0000000000800000,
///
/// Vertex attribute half-float is supported.
///
- VertexAttribHalf = 0x0000000002000000,
+ VertexAttribHalf = 0x0000000001000000,
///
/// Vertex attribute 10_10_10_2 is supported.
///
- VertexAttribUint10 = 0x0000000004000000,
+ VertexAttribUint10 = 0x0000000002000000,
///
/// Rendering with VertexID only is supported.
///
- VertexId = 0x0000000008000000,
+ VertexId = 0x0000000004000000,
///
/// All texture compare modes are supported.
///
- TextureCompareAll = 0x0000000000300000,
+ TextureCompareAll = 0x0000000000180000,
}
[AllowDuplicates]
diff --git a/bindings/cs/bgfx.cs b/bindings/cs/bgfx.cs
index 31eee7fb4..0f88dce7d 100644
--- a/bindings/cs/bgfx.cs
+++ b/bindings/cs/bgfx.cs
@@ -1040,111 +1040,106 @@ public static partial class bgfx
///
FragmentOrdering = 0x0000000000000040,
- ///
- /// Image Read/Write is supported.
- ///
- ImageRw = 0x0000000000000080,
-
///
/// Graphics debugger is present.
///
- GraphicsDebugger = 0x0000000000000100,
- Reserved = 0x0000000000000200,
+ GraphicsDebugger = 0x0000000000000080,
///
/// HDR10 rendering is supported.
///
- Hdr10 = 0x0000000000000400,
+ Hdr10 = 0x0000000000000100,
///
/// HiDPI rendering is supported.
///
- Hidpi = 0x0000000000000800,
+ Hidpi = 0x0000000000000200,
+
+ ///
+ /// Image Read/Write is supported.
+ ///
+ ImageRw = 0x0000000000000400,
///
/// 32-bit indices are supported.
///
- Index32 = 0x0000000000001000,
+ Index32 = 0x0000000000000800,
///
/// Instancing is supported.
///
- Instancing = 0x0000000000002000,
+ Instancing = 0x0000000000001000,
///
/// Occlusion query is supported.
///
- OcclusionQuery = 0x0000000000004000,
+ OcclusionQuery = 0x0000000000002000,
///
/// Renderer is on separate thread.
///
- RendererMultithreaded = 0x0000000000008000,
+ RendererMultithreaded = 0x0000000000004000,
///
/// Multiple windows are supported.
///
- SwapChain = 0x0000000000010000,
+ SwapChain = 0x0000000000008000,
///
/// 2D texture array is supported.
///
- Texture2dArray = 0x0000000000020000,
+ Texture2dArray = 0x0000000000010000,
///
/// 3D textures are supported.
///
- Texture3d = 0x0000000000040000,
+ Texture3d = 0x0000000000020000,
///
/// Texture blit is supported.
///
- TextureBlit = 0x0000000000080000,
-
- ///
- /// All texture compare modes are supported.
- ///
- TextureCompareReserved = 0x0000000000100000,
+ TextureBlit = 0x0000000000040000,
+ TextureCompareReserved = 0x0000000000080000,
///
/// Texture compare less equal mode is supported.
///
- TextureCompareLequal = 0x0000000000200000,
+ TextureCompareLequal = 0x0000000000100000,
///
/// Cubemap texture array is supported.
///
- TextureCubeArray = 0x0000000000400000,
+ TextureCubeArray = 0x0000000000200000,
///
/// CPU direct access to GPU texture memory.
///
- TextureDirectAccess = 0x0000000000800000,
+ TextureDirectAccess = 0x0000000000400000,
///
/// Read-back texture is supported.
///
- TextureReadBack = 0x0000000001000000,
+ TextureReadBack = 0x0000000000800000,
///
/// Vertex attribute half-float is supported.
///
- VertexAttribHalf = 0x0000000002000000,
+ VertexAttribHalf = 0x0000000001000000,
///
/// Vertex attribute 10_10_10_2 is supported.
///
- VertexAttribUint10 = 0x0000000004000000,
+ VertexAttribUint10 = 0x0000000002000000,
///
/// Rendering with VertexID only is supported.
///
- VertexId = 0x0000000008000000,
+ VertexId = 0x0000000004000000,
///
/// All texture compare modes are supported.
///
- TextureCompareAll = 0x0000000000300000,
+ TextureCompareAll = 0x0000000000180000,
}
[Flags]
diff --git a/bindings/d/types.d b/bindings/d/types.d
index 8465529a7..4ae6394fd 100644
--- a/bindings/d/types.d
+++ b/bindings/d/types.d
@@ -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.
diff --git a/include/bgfx/defines.h b/include/bgfx/defines.h
index 9afa12f3a..82fb44ed3 100644
--- a/include/bgfx/defines.h
+++ b/include/bgfx/defines.h
@@ -15,7 +15,7 @@
#ifndef BGFX_DEFINES_H_HEADER_GUARD
#define BGFX_DEFINES_H_HEADER_GUARD
-#define BGFX_API_VERSION UINT32_C(109)
+#define BGFX_API_VERSION UINT32_C(110)
/**
* Color RGB/alpha/depth write. When it's not specified write will be disabled.
@@ -468,27 +468,26 @@
#define BGFX_CAPS_DRAW_INDIRECT UINT64_C(0x0000000000000010) //!< Draw indirect is supported.
#define BGFX_CAPS_FRAGMENT_DEPTH UINT64_C(0x0000000000000020) //!< Fragment depth is accessible in fragment shader.
#define BGFX_CAPS_FRAGMENT_ORDERING UINT64_C(0x0000000000000040) //!< Fragment ordering is available in fragment shader.
-#define BGFX_CAPS_IMAGE_RW UINT64_C(0x0000000000000080) //!< Image Read/Write is supported.
-#define BGFX_CAPS_GRAPHICS_DEBUGGER UINT64_C(0x0000000000000100) //!< Graphics debugger is present.
-#define BGFX_CAPS_RESERVED UINT64_C(0x0000000000000200)
-#define BGFX_CAPS_HDR10 UINT64_C(0x0000000000000400) //!< HDR10 rendering is supported.
-#define BGFX_CAPS_HIDPI UINT64_C(0x0000000000000800) //!< HiDPI rendering is supported.
-#define BGFX_CAPS_INDEX32 UINT64_C(0x0000000000001000) //!< 32-bit indices are supported.
-#define BGFX_CAPS_INSTANCING UINT64_C(0x0000000000002000) //!< Instancing is supported.
-#define BGFX_CAPS_OCCLUSION_QUERY UINT64_C(0x0000000000004000) //!< Occlusion query is supported.
-#define BGFX_CAPS_RENDERER_MULTITHREADED UINT64_C(0x0000000000008000) //!< Renderer is on separate thread.
-#define BGFX_CAPS_SWAP_CHAIN UINT64_C(0x0000000000010000) //!< Multiple windows are supported.
-#define BGFX_CAPS_TEXTURE_2D_ARRAY UINT64_C(0x0000000000020000) //!< 2D texture array is supported.
-#define BGFX_CAPS_TEXTURE_3D UINT64_C(0x0000000000040000) //!< 3D textures are supported.
-#define BGFX_CAPS_TEXTURE_BLIT UINT64_C(0x0000000000080000) //!< Texture blit is supported.
-#define BGFX_CAPS_TEXTURE_COMPARE_RESERVED UINT64_C(0x0000000000100000) //!< All texture compare modes are supported.
-#define BGFX_CAPS_TEXTURE_COMPARE_LEQUAL UINT64_C(0x0000000000200000) //!< Texture compare less equal mode is supported.
-#define BGFX_CAPS_TEXTURE_CUBE_ARRAY UINT64_C(0x0000000000400000) //!< Cubemap texture array is supported.
-#define BGFX_CAPS_TEXTURE_DIRECT_ACCESS UINT64_C(0x0000000000800000) //!< CPU direct access to GPU texture memory.
-#define BGFX_CAPS_TEXTURE_READ_BACK UINT64_C(0x0000000001000000) //!< Read-back texture is supported.
-#define BGFX_CAPS_VERTEX_ATTRIB_HALF UINT64_C(0x0000000002000000) //!< Vertex attribute half-float is supported.
-#define BGFX_CAPS_VERTEX_ATTRIB_UINT10 UINT64_C(0x0000000004000000) //!< Vertex attribute 10_10_10_2 is supported.
-#define BGFX_CAPS_VERTEX_ID UINT64_C(0x0000000008000000) //!< Rendering with VertexID only is supported.
+#define BGFX_CAPS_GRAPHICS_DEBUGGER UINT64_C(0x0000000000000080) //!< Graphics debugger is present.
+#define BGFX_CAPS_HDR10 UINT64_C(0x0000000000000100) //!< HDR10 rendering is supported.
+#define BGFX_CAPS_HIDPI UINT64_C(0x0000000000000200) //!< HiDPI rendering is supported.
+#define BGFX_CAPS_IMAGE_RW UINT64_C(0x0000000000000400) //!< Image Read/Write is supported.
+#define BGFX_CAPS_INDEX32 UINT64_C(0x0000000000000800) //!< 32-bit indices are supported.
+#define BGFX_CAPS_INSTANCING UINT64_C(0x0000000000001000) //!< Instancing is supported.
+#define BGFX_CAPS_OCCLUSION_QUERY UINT64_C(0x0000000000002000) //!< Occlusion query is supported.
+#define BGFX_CAPS_RENDERER_MULTITHREADED UINT64_C(0x0000000000004000) //!< Renderer is on separate thread.
+#define BGFX_CAPS_SWAP_CHAIN UINT64_C(0x0000000000008000) //!< Multiple windows are supported.
+#define BGFX_CAPS_TEXTURE_2D_ARRAY UINT64_C(0x0000000000010000) //!< 2D texture array is supported.
+#define BGFX_CAPS_TEXTURE_3D UINT64_C(0x0000000000020000) //!< 3D textures are supported.
+#define BGFX_CAPS_TEXTURE_BLIT UINT64_C(0x0000000000040000) //!< Texture blit is supported.
+#define BGFX_CAPS_TEXTURE_COMPARE_RESERVED UINT64_C(0x0000000000080000)
+#define BGFX_CAPS_TEXTURE_COMPARE_LEQUAL UINT64_C(0x0000000000100000) //!< Texture compare less equal mode is supported.
+#define BGFX_CAPS_TEXTURE_CUBE_ARRAY UINT64_C(0x0000000000200000) //!< Cubemap texture array is supported.
+#define BGFX_CAPS_TEXTURE_DIRECT_ACCESS UINT64_C(0x0000000000400000) //!< CPU direct access to GPU texture memory.
+#define BGFX_CAPS_TEXTURE_READ_BACK UINT64_C(0x0000000000800000) //!< Read-back texture is supported.
+#define BGFX_CAPS_VERTEX_ATTRIB_HALF UINT64_C(0x0000000001000000) //!< Vertex attribute half-float is supported.
+#define BGFX_CAPS_VERTEX_ATTRIB_UINT10 UINT64_C(0x0000000002000000) //!< Vertex attribute 10_10_10_2 is supported.
+#define BGFX_CAPS_VERTEX_ID UINT64_C(0x0000000004000000) //!< Rendering with VertexID only is supported.
/// All texture compare modes are supported.
#define BGFX_CAPS_TEXTURE_COMPARE_ALL (0 \
| BGFX_CAPS_TEXTURE_COMPARE_RESERVED \
diff --git a/scripts/bgfx.idl b/scripts/bgfx.idl
index d142e324b..175a15a71 100644
--- a/scripts/bgfx.idl
+++ b/scripts/bgfx.idl
@@ -1,7 +1,7 @@
-- vim: syntax=lua
-- bgfx interface
-version(109)
+version(110)
typedef "bool"
typedef "char"
@@ -371,11 +371,10 @@ flag.Caps { bits = 64, base = 1, name = "Caps" }
.DrawIndirect --- Draw indirect is supported.
.FragmentDepth --- Fragment depth is accessible in fragment shader.
.FragmentOrdering --- Fragment ordering is available in fragment shader.
- .ImageRw --- Image Read/Write is supported.
.GraphicsDebugger --- Graphics debugger is present.
- .Reserved
.Hdr10 --- HDR10 rendering is supported.
.Hidpi --- HiDPI rendering is supported.
+ .ImageRw --- Image Read/Write is supported.
.Index32 --- 32-bit indices are supported.
.Instancing --- Instancing is supported.
.OcclusionQuery --- Occlusion query is supported.
@@ -384,7 +383,7 @@ flag.Caps { bits = 64, base = 1, name = "Caps" }
.Texture_2dArray --- 2D texture array is supported.
.Texture_3d --- 3D textures are supported.
.TextureBlit --- Texture blit is supported.
- .TextureCompareReserved --- All texture compare modes are supported.
+ .TextureCompareReserved
.TextureCompareLequal --- Texture compare less equal mode is supported.
.TextureCubeArray --- Cubemap texture array is supported.
.TextureDirectAccess --- CPU direct access to GPU texture memory.