Function bgfx_sys::bgfx_get_shader_uniforms[][src]

pub unsafe extern "C" fn bgfx_get_shader_uniforms(
    _handle: bgfx_shader_handle_t,
    _uniforms: *mut bgfx_uniform_handle_t,
    _max: u16
) -> u16
Expand description

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

@param[in] _handle Shader handle. @param[out] _uniforms UniformHandle array where data will be stored. @param[in] _max Maximum capacity of array.

@returns Number of uniforms used by shader.