mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Clarified docs about requirement to use command line tool to compile shaders.
This commit is contained in:
@@ -2401,6 +2401,8 @@ pub inline fn destroyIndirectBuffer(_handle: IndirectBufferHandle) void {
|
||||
extern fn bgfx_destroy_indirect_buffer(_handle: IndirectBufferHandle) void;
|
||||
|
||||
/// Create shader from memory buffer.
|
||||
/// @remarks
|
||||
/// Shader binary is obtained by compiling shader offline with shaderc command line tool.
|
||||
/// <param name="_mem">Shader binary.</param>
|
||||
pub inline fn createShader(_mem: [*c]const Memory) ShaderHandle {
|
||||
return bgfx_create_shader(_mem);
|
||||
|
||||
Reference in New Issue
Block a user