Clarified docs about requirement to use command line tool to compile shaders.

This commit is contained in:
Бранимир Караџић
2023-11-22 23:14:09 -08:00
parent bd0cd504f6
commit 1a329595aa
8 changed files with 34 additions and 13 deletions

View File

@@ -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);