pub type CreateDeviceCallback<'this> = dyn for<'arg, 'pnext> FnOnce(CreateDeviceCallbackArgs<'arg, 'pnext, 'this>) + 'this;
Available on
vulkan
only.Expand description
Callback to allow changing the vulkan device 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.