Device.createSampler - multiple declarations

Function Device.createSampler

Creates a new Sampler.

Sampler createSampler (
  const(__C.WGPUSamplerDescriptor) descriptor
) @trusted;

Parameters

NameDescription
descriptor Specifies the behavior of the sampler.

Function Device.createSampler

Creates a new Sampler.

Sampler createSampler (
  AddressMode addressMode,
  FilterMode magFilter,
  FilterMode minFilter,
  MipmapFilterMode mipmapFilter = MipmapFilterMode.nearest
);

Parameters

NameDescription
addressMode How to deal with out of bounds accesses.
magFilter How to filter the texture when it needs to be magnified/made larger.
minFilter How to filter the texture when it needs to be minified/made smaller.
mipmapFilter How to filter between mip map levels.