Function bgfx_sys::bgfx_encoder_set_texture[][src]

pub unsafe extern "C" fn bgfx_encoder_set_texture(
    _this: *mut bgfx_encoder_t,
    _stage: u8,
    _sampler: bgfx_uniform_handle_t,
    _handle: bgfx_texture_handle_t,
    _flags: u32
)
Expand description

Set texture stage for draw primitive.

@param[in] _stage Texture unit. @param[in] _sampler Program sampler. @param[in] _handle Texture handle. @param[in] _flags 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.