pub struct CorrectionMap {
pub sets: Option<HashMap<u32, CorrectionSet>>,
pub immediates_set: Option<u32>,
pub immediates_set_mode: Option<ImmediatesSetMode>,
pub immediates_binding: Option<u32>,
pub immediates_binding_mode: Option<ImmediatesBindingMode>,
}Expand description
Lookup a set and a binding for a list of CorrectionType.
In order, insert a new variable for each, see CorrectionType for what type of object should
be inserted for each variant.
Fields§
§sets: Option<HashMap<u32, CorrectionSet>>§immediates_set: Option<u32>Represents both an input/output where the immediate uniforms should/is written to.
Control the set immediates should be written to by setting before patching.
If this is None, this becomes the max set plus one.
immediates_set_mode: Option<ImmediatesSetMode>Works as an input setting controlling the behaviour of immediates_set.
This is valuable when dealing with WebGPU’s maxBindGroup especially if your sets
previously followed the maximum.
immediates_binding: Option<u32>Represents both an input/output representing which binding the immediate uniform is written
to.
If ImmediatesBindingMode is ImmediatesBindingMode::Absolute, set the index of the
immediates buffer binding.
immediates_binding_mode: Option<ImmediatesBindingMode>Works as an input setting, controlling how the immediate uniform’s binding index should be determined within the bind group set.