Type Alias CreateInstanceCallback

Source
pub type CreateInstanceCallback<'this> = dyn for<'arg, 'pnext> FnOnce(CreateInstanceCallbackArgs<'arg, 'pnext, 'this>) + 'this;
Available on vulkan only.
Expand description

Callback to allow changing the vulkan instance creation parameters.

ยงSafety:

  • If you want to add extensions, add the to the Vec<'static CStr> not the create info, as the create info value will be overwritten.
  • Callback must not remove features.
  • Callback must not change anything to what the instance does not support.