Skip to content

Commit

Permalink
feat(bgfx) update to API version 124
Browse files Browse the repository at this point in the history
  • Loading branch information
Spasi committed Dec 16, 2023
1 parent 1d44bdf commit 636f49f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion doc/notes/3.3.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This build includes the following changes:
#### Bindings

- Assimp: Updated to 5.3.1 (up from 5.2.5)
- bgfx: Updated to API version 123 (up from 122)
- bgfx: Updated to API version 124 (up from 122)
* Windows: support for the Direct3D 9 backend has been dropped.
- FMOD: Updated to 2.02.19 (up from 2.02.16)
- glfw: Updated to latest 3.3.9 (up from 3.3.8)
Expand Down
32 changes: 16 additions & 16 deletions modules/lwjgl/bgfx/src/generated/java/org/lwjgl/bgfx/BGFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public static SharedLibrary getLibrary() {
}

/** API version */
public static final int BGFX_API_VERSION = 123;
public static final int BGFX_API_VERSION = 124;

/** Invalid handle */
public static final short BGFX_INVALID_HANDLE = (short)0xFFFF;
Expand Down Expand Up @@ -707,23 +707,21 @@ public static SharedLibrary getLibrary() {
* <li>{@link #BGFX_RENDERER_TYPE_OPENGLES RENDERER_TYPE_OPENGLES} - OpenGL ES 2.0+</li>
* <li>{@link #BGFX_RENDERER_TYPE_OPENGL RENDERER_TYPE_OPENGL} - OpenGL 2.1+</li>
* <li>{@link #BGFX_RENDERER_TYPE_VULKAN RENDERER_TYPE_VULKAN} - Vulkan</li>
* <li>{@link #BGFX_BGFX_RENDERER_TYPE_WEBGPU BGFX_RENDERER_TYPE_WEBGPU} - WebGPU</li>
* <li>{@link #BGFX_RENDERER_TYPE_COUNT RENDERER_TYPE_COUNT}</li>
* </ul>
*/
public static final int
BGFX_RENDERER_TYPE_NOOP = 0,
BGFX_RENDERER_TYPE_AGC = 1,
BGFX_RENDERER_TYPE_DIRECT3D11 = 2,
BGFX_RENDERER_TYPE_DIRECT3D12 = 3,
BGFX_RENDERER_TYPE_GNM = 4,
BGFX_RENDERER_TYPE_METAL = 5,
BGFX_RENDERER_TYPE_NVN = 6,
BGFX_RENDERER_TYPE_OPENGLES = 7,
BGFX_RENDERER_TYPE_OPENGL = 8,
BGFX_RENDERER_TYPE_VULKAN = 9,
BGFX_BGFX_RENDERER_TYPE_WEBGPU = 10,
BGFX_RENDERER_TYPE_COUNT = 11;
BGFX_RENDERER_TYPE_NOOP = 0,
BGFX_RENDERER_TYPE_AGC = 1,
BGFX_RENDERER_TYPE_DIRECT3D11 = 2,
BGFX_RENDERER_TYPE_DIRECT3D12 = 3,
BGFX_RENDERER_TYPE_GNM = 4,
BGFX_RENDERER_TYPE_METAL = 5,
BGFX_RENDERER_TYPE_NVN = 6,
BGFX_RENDERER_TYPE_OPENGLES = 7,
BGFX_RENDERER_TYPE_OPENGL = 8,
BGFX_RENDERER_TYPE_VULKAN = 9,
BGFX_RENDERER_TYPE_COUNT = 10;

/**
* Access mode ({@code bgfx_access_t})
Expand Down Expand Up @@ -1259,7 +1257,7 @@ public static long nbgfx_vertex_layout_begin(long _this, int _renderer) {
* Start a vertex layout.
*
* @param _this the vertex layout
* @param _renderer the renderer backend type. One of:<br><table><tr><td>{@link #BGFX_RENDERER_TYPE_NOOP RENDERER_TYPE_NOOP}</td><td>{@link #BGFX_RENDERER_TYPE_AGC RENDERER_TYPE_AGC}</td><td>{@link #BGFX_RENDERER_TYPE_DIRECT3D11 RENDERER_TYPE_DIRECT3D11}</td><td>{@link #BGFX_RENDERER_TYPE_DIRECT3D12 RENDERER_TYPE_DIRECT3D12}</td></tr><tr><td>{@link #BGFX_RENDERER_TYPE_GNM RENDERER_TYPE_GNM}</td><td>{@link #BGFX_RENDERER_TYPE_METAL RENDERER_TYPE_METAL}</td><td>{@link #BGFX_RENDERER_TYPE_NVN RENDERER_TYPE_NVN}</td><td>{@link #BGFX_RENDERER_TYPE_OPENGLES RENDERER_TYPE_OPENGLES}</td></tr><tr><td>{@link #BGFX_RENDERER_TYPE_OPENGL RENDERER_TYPE_OPENGL}</td><td>{@link #BGFX_RENDERER_TYPE_VULKAN RENDERER_TYPE_VULKAN}</td><td>{@link #BGFX_BGFX_RENDERER_TYPE_WEBGPU BGFX_RENDERER_TYPE_WEBGPU}</td><td>{@link #BGFX_RENDERER_TYPE_COUNT RENDERER_TYPE_COUNT}</td></tr></table>
* @param _renderer the renderer backend type. One of:<br><table><tr><td>{@link #BGFX_RENDERER_TYPE_NOOP RENDERER_TYPE_NOOP}</td><td>{@link #BGFX_RENDERER_TYPE_AGC RENDERER_TYPE_AGC}</td><td>{@link #BGFX_RENDERER_TYPE_DIRECT3D11 RENDERER_TYPE_DIRECT3D11}</td><td>{@link #BGFX_RENDERER_TYPE_DIRECT3D12 RENDERER_TYPE_DIRECT3D12}</td></tr><tr><td>{@link #BGFX_RENDERER_TYPE_GNM RENDERER_TYPE_GNM}</td><td>{@link #BGFX_RENDERER_TYPE_METAL RENDERER_TYPE_METAL}</td><td>{@link #BGFX_RENDERER_TYPE_NVN RENDERER_TYPE_NVN}</td><td>{@link #BGFX_RENDERER_TYPE_OPENGLES RENDERER_TYPE_OPENGLES}</td></tr><tr><td>{@link #BGFX_RENDERER_TYPE_OPENGL RENDERER_TYPE_OPENGL}</td><td>{@link #BGFX_RENDERER_TYPE_VULKAN RENDERER_TYPE_VULKAN}</td><td>{@link #BGFX_RENDERER_TYPE_COUNT RENDERER_TYPE_COUNT}</td></tr></table>
*
* @return itself
*/
Expand Down Expand Up @@ -1688,7 +1686,7 @@ public static long nbgfx_get_renderer_name(int _type) {
/**
* Returns name of renderer.
*
* @param _type the renderer type. One of:<br><table><tr><td>{@link #BGFX_RENDERER_TYPE_NOOP RENDERER_TYPE_NOOP}</td><td>{@link #BGFX_RENDERER_TYPE_AGC RENDERER_TYPE_AGC}</td><td>{@link #BGFX_RENDERER_TYPE_DIRECT3D11 RENDERER_TYPE_DIRECT3D11}</td><td>{@link #BGFX_RENDERER_TYPE_DIRECT3D12 RENDERER_TYPE_DIRECT3D12}</td></tr><tr><td>{@link #BGFX_RENDERER_TYPE_GNM RENDERER_TYPE_GNM}</td><td>{@link #BGFX_RENDERER_TYPE_METAL RENDERER_TYPE_METAL}</td><td>{@link #BGFX_RENDERER_TYPE_NVN RENDERER_TYPE_NVN}</td><td>{@link #BGFX_RENDERER_TYPE_OPENGLES RENDERER_TYPE_OPENGLES}</td></tr><tr><td>{@link #BGFX_RENDERER_TYPE_OPENGL RENDERER_TYPE_OPENGL}</td><td>{@link #BGFX_RENDERER_TYPE_VULKAN RENDERER_TYPE_VULKAN}</td><td>{@link #BGFX_BGFX_RENDERER_TYPE_WEBGPU BGFX_RENDERER_TYPE_WEBGPU}</td><td>{@link #BGFX_RENDERER_TYPE_COUNT RENDERER_TYPE_COUNT}</td></tr></table>
* @param _type the renderer type. One of:<br><table><tr><td>{@link #BGFX_RENDERER_TYPE_NOOP RENDERER_TYPE_NOOP}</td><td>{@link #BGFX_RENDERER_TYPE_AGC RENDERER_TYPE_AGC}</td><td>{@link #BGFX_RENDERER_TYPE_DIRECT3D11 RENDERER_TYPE_DIRECT3D11}</td><td>{@link #BGFX_RENDERER_TYPE_DIRECT3D12 RENDERER_TYPE_DIRECT3D12}</td></tr><tr><td>{@link #BGFX_RENDERER_TYPE_GNM RENDERER_TYPE_GNM}</td><td>{@link #BGFX_RENDERER_TYPE_METAL RENDERER_TYPE_METAL}</td><td>{@link #BGFX_RENDERER_TYPE_NVN RENDERER_TYPE_NVN}</td><td>{@link #BGFX_RENDERER_TYPE_OPENGLES RENDERER_TYPE_OPENGLES}</td></tr><tr><td>{@link #BGFX_RENDERER_TYPE_OPENGL RENDERER_TYPE_OPENGL}</td><td>{@link #BGFX_RENDERER_TYPE_VULKAN RENDERER_TYPE_VULKAN}</td><td>{@link #BGFX_RENDERER_TYPE_COUNT RENDERER_TYPE_COUNT}</td></tr></table>
*/
@Nullable
@NativeType("char const *")
Expand Down Expand Up @@ -2830,6 +2828,8 @@ public static short nbgfx_create_shader(long _mem) {

/**
* Creates shader from memory buffer.
*
* <p>Shader binary is obtained by compiling shader offline with shaderc command line tool.</p>
*
* @return shader handle
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ val BGFX = "BGFX".nativeClass(Module.BGFX, prefix = "BGFX", prefixMethod = "bgfx
IntConstant(
"API version",

"API_VERSION".."123"
"API_VERSION".."124"
)

ShortConstant(
Expand Down Expand Up @@ -563,7 +563,6 @@ val BGFX = "BGFX".nativeClass(Module.BGFX, prefix = "BGFX", prefixMethod = "bgfx
"RENDERER_TYPE_OPENGLES".enum("OpenGL ES 2.0+"),
"RENDERER_TYPE_OPENGL".enum("OpenGL 2.1+"),
"RENDERER_TYPE_VULKAN".enum("Vulkan"),
"BGFX_RENDERER_TYPE_WEBGPU".enum("WebGPU"),

"RENDERER_TYPE_COUNT".enum
).javaDocLinks
Expand Down Expand Up @@ -1457,7 +1456,11 @@ RGBA16S

bgfx_shader_handle_t(
"create_shader",
"Creates shader from memory buffer.",
"""
Creates shader from memory buffer.
Shader binary is obtained by compiling shader offline with shaderc command line tool.
""",

bgfx_memory_t.const.p("_mem", ""),

Expand Down

0 comments on commit 636f49f

Please sign in to comment.