Skip to main content

create_repeat_sampler

Function create_repeat_sampler 

Source
pub fn create_repeat_sampler(device: &Device, label: Option<&str>) -> Sampler
Expand description

Create a linear sampler with Repeat address mode.

Suitable for:

  • Tiled background textures
  • Shader channel textures that should tile