bgfx_create_program

Create program with vertex and fragment shaders.

  1. bgfx_program_handle_t bgfx_create_program(bgfx_shader_handle_t _vsh, bgfx_shader_handle_t _fsh, bool _destroyShaders)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    bgfx_create_program
  2. da_bgfx_create_program bgfx_create_program;

Parameters

_vsh bgfx_shader_handle_t

Vertex shader.

_fsh bgfx_shader_handle_t

Fragment shader.

_destroyShaders bool

If true, shaders will be destroyed when program is destroyed.

Meta