bgfx_encoder_set_texture

Set texture stage for draw primitive.

  1. void bgfx_encoder_set_texture(bgfx_encoder_t* _this, byte _stage, bgfx_uniform_handle_t _sampler, bgfx_texture_handle_t _handle, uint _flags)
    version(BindBgfx_Static)
    extern (C) @nogc nothrow
    void
    bgfx_encoder_set_texture
  2. da_bgfx_encoder_set_texture bgfx_encoder_set_texture;

Parameters

_stage byte

Texture unit.

_sampler bgfx_uniform_handle_t

Program sampler.

_handle bgfx_texture_handle_t

Texture handle.

_flags uint

Texture sampling mode. Default value UINT32_MAX uses texture sampling settings from the texture. - BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP] - Mirror or clamp to edge wrap mode. - BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC] - Point or anisotropic sampling.

Meta