Module spirv_std::image::sample_with

source ·
Expand description

Contains extra image operands

Structs§

  • Helper struct that denotes that the type doesn’t exist, analog to Option::None
  • Helper struct that allows building image operands. Start with a global function that returns this struct, and then chain additional calls. No care is taken to avoid stating multiple operands that, together, make no sense, such as Lod and Grad. Example: image.sample_with(coords, sample_with::bias(3.0).sample_index(1))
  • Helper struct that denotes that the type does exist and is of type T, analog to Option::Some(T)

Traits§

  • Helper trait to mimic Option<T>, but where the variant are types

Functions§

  • Sets the ‘Bias’ image operand
  • Sets the ‘Grad’ image operand
  • Sets the ‘Lod’ image operand
  • Sets the ‘Sample’ image operand