bgfx_get_shader_uniforms

Returns the number of uniforms and uniform handles used inside a shader. Remarks: Only non-predefined uniforms are returned.

  1. ushort bgfx_get_shader_uniforms(bgfx_shader_handle_t _handle, bgfx_uniform_handle_t* _uniforms, ushort _max)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    ushort
    bgfx_get_shader_uniforms
  2. da_bgfx_get_shader_uniforms bgfx_get_shader_uniforms;

Parameters

_handle bgfx_shader_handle_t

Shader handle.

_uniforms bgfx_uniform_handle_t*

UniformHandle array where data will be stored.

_max ushort

Maximum capacity of array.

Meta