pub struct CreateDeviceCallbackArgs<'arg, 'pnext, 'this>where
'this: 'pnext,{
pub extensions: &'arg mut Vec<&'static CStr>,
pub device_features: &'arg mut PhysicalDeviceFeatures,
pub queue_create_infos: &'arg mut Vec<DeviceQueueCreateInfo<'pnext>>,
pub create_info: &'arg mut DeviceCreateInfo<'pnext>,
/* private fields */
}Available on
vulkan only.Expand description
Arguments to the CreateDeviceCallback.
Fields§
§extensions: &'arg mut Vec<&'static CStr>The extensions to enable for the device. You must not remove anything from this list, but you may add to it.
device_features: &'arg mut PhysicalDeviceFeaturesThe physical device features to enable. You may enable features, but must not disable any.
queue_create_infos: &'arg mut Vec<DeviceQueueCreateInfo<'pnext>>The queue create infos for the device. You may substitute a different queue, but:
- Any queue you provide must be compatible with
wgpu’s usage, - You must not leave the vector empty,
wgpucurrently only uses the first entry.
create_info: &'arg mut DeviceCreateInfo<'pnext>The create info for the device. You may add or modify things in the pnext chain, but do not turn features off. Additionally, do not add things to the list of extensions, or to the feature set, as all changes to that member will be overwritten.
Trait Implementations§
Auto Trait Implementations§
impl<'arg, 'pnext, 'this> !UnwindSafe for CreateDeviceCallbackArgs<'arg, 'pnext, 'this>
impl<'arg, 'pnext, 'this> Forget for CreateDeviceCallbackArgs<'arg, 'pnext, 'this>
impl<'arg, 'pnext, 'this> Freeze for CreateDeviceCallbackArgs<'arg, 'pnext, 'this>where
&'arg mut Vec<&'static CStr>: Freeze,
&'arg mut PhysicalDeviceFeatures: Freeze,
&'arg mut Vec<DeviceQueueCreateInfo<'pnext>>: Freeze,
&'arg mut DeviceCreateInfo<'pnext>: Freeze,
PhantomData<&'this ()>: Freeze,
impl<'arg, 'pnext, 'this> Move for CreateDeviceCallbackArgs<'arg, 'pnext, 'this>
impl<'arg, 'pnext, 'this> RefUnwindSafe for CreateDeviceCallbackArgs<'arg, 'pnext, 'this>
impl<'arg, 'pnext, 'this> Send for CreateDeviceCallbackArgs<'arg, 'pnext, 'this>where
RawVecInner: Send,
&'static CStr: Send,
PhysicalDeviceDescriptorIndexingFeatures<'static>: Send,
PhysicalDeviceTimelineSemaphoreFeatures<'static>: Send,
PhysicalDeviceImageRobustnessFeatures<'static>: Send,
PhysicalDeviceRobustness2FeaturesEXT<'static>: Send,
PhysicalDeviceMultiviewFeatures<'static>: Send,
PhysicalDeviceSamplerYcbcrConversionFeatures<'static>: Send,
PhysicalDeviceTextureCompressionASTCHDRFeatures<'static>: Send,
PhysicalDeviceShaderFloat16Int8Features<'static>: Send,
PhysicalDevice16BitStorageFeatures<'static>: Send,
PhysicalDeviceAccelerationStructureFeaturesKHR<'static>: Send,
PhysicalDeviceBufferDeviceAddressFeatures<'static>: Send,
PhysicalDeviceRayQueryFeaturesKHR<'static>: Send,
PhysicalDeviceRayTracingPipelineFeaturesKHR<'static>: Send,
FeaturesEXT: Send,
PhysicalDeviceZeroInitializeWorkgroupMemoryFeatures<'static>: Send,
PhysicalDeviceRayTracingPositionFetchFeaturesKHR<'static>: Send,
PhysicalDeviceShaderAtomicInt64Features<'static>: Send,
PhysicalDeviceShaderImageAtomicInt64FeaturesEXT<'static>: Send,
PhysicalDeviceShaderAtomicFloatFeaturesEXT<'static>: Send,
PhysicalDeviceSubgroupSizeControlFeatures<'static>: Send,
PhysicalDeviceMaintenance4Features<'static>: Send,
PhysicalDeviceMeshShaderFeaturesEXT<'static>: Send,
PhysicalDeviceShaderIntegerDotProductFeatures<'static>: Send,
PhysicalDeviceFragmentShaderBarycentricFeaturesKHR<'static>: Send,
PhysicalDevicePortabilitySubsetFeaturesKHR<'static>: Send,
PhysicalDeviceCooperativeMatrixFeaturesKHR<'static>: Send,
PhysicalDeviceVulkanMemoryModelFeatures<'static>: Send,
PhysicalDeviceShaderDrawParametersFeatures<'static>: Send,
DeviceQueueCreateInfo<'pnext>: Send,
DeviceCreateInfo<'pnext>: Send,
&'this (): Send,
impl<'arg, 'pnext, 'this> Sync for CreateDeviceCallbackArgs<'arg, 'pnext, 'this>where
RawVecInner: Sync,
PhysicalDeviceDescriptorIndexingFeatures<'static>: Sync,
PhysicalDeviceTimelineSemaphoreFeatures<'static>: Sync,
PhysicalDeviceImageRobustnessFeatures<'static>: Sync,
PhysicalDeviceRobustness2FeaturesEXT<'static>: Sync,
PhysicalDeviceMultiviewFeatures<'static>: Sync,
PhysicalDeviceSamplerYcbcrConversionFeatures<'static>: Sync,
PhysicalDeviceTextureCompressionASTCHDRFeatures<'static>: Sync,
PhysicalDeviceShaderFloat16Int8Features<'static>: Sync,
PhysicalDevice16BitStorageFeatures<'static>: Sync,
PhysicalDeviceAccelerationStructureFeaturesKHR<'static>: Sync,
PhysicalDeviceBufferDeviceAddressFeatures<'static>: Sync,
PhysicalDeviceRayQueryFeaturesKHR<'static>: Sync,
PhysicalDeviceRayTracingPipelineFeaturesKHR<'static>: Sync,
FeaturesEXT: Sync,
PhysicalDeviceZeroInitializeWorkgroupMemoryFeatures<'static>: Sync,
PhysicalDeviceRayTracingPositionFetchFeaturesKHR<'static>: Sync,
PhysicalDeviceShaderAtomicInt64Features<'static>: Sync,
PhysicalDeviceShaderImageAtomicInt64FeaturesEXT<'static>: Sync,
PhysicalDeviceShaderAtomicFloatFeaturesEXT<'static>: Sync,
PhysicalDeviceSubgroupSizeControlFeatures<'static>: Sync,
PhysicalDeviceMaintenance4Features<'static>: Sync,
PhysicalDeviceMeshShaderFeaturesEXT<'static>: Sync,
PhysicalDeviceShaderIntegerDotProductFeatures<'static>: Sync,
PhysicalDeviceFragmentShaderBarycentricFeaturesKHR<'static>: Sync,
PhysicalDevicePortabilitySubsetFeaturesKHR<'static>: Sync,
PhysicalDeviceCooperativeMatrixFeaturesKHR<'static>: Sync,
PhysicalDeviceVulkanMemoryModelFeatures<'static>: Sync,
PhysicalDeviceShaderDrawParametersFeatures<'static>: Sync,
DeviceQueueCreateInfo<'pnext>: Sync,
DeviceCreateInfo<'pnext>: Sync,
impl<'arg, 'pnext, 'this> Unpin for CreateDeviceCallbackArgs<'arg, 'pnext, 'this>where
&'arg mut Vec<&'static CStr>: Unpin,
&'arg mut PhysicalDeviceFeatures: Unpin,
&'arg mut Vec<DeviceQueueCreateInfo<'pnext>>: Unpin,
&'arg mut DeviceCreateInfo<'pnext>: Unpin,
&'this (): Unpin,
impl<'arg, 'pnext, 'this> UnsafeUnpin for CreateDeviceCallbackArgs<'arg, 'pnext, 'this>where
&'arg mut Vec<&'static CStr>: UnsafeUnpin,
&'arg mut PhysicalDeviceFeatures: UnsafeUnpin,
&'arg mut Vec<DeviceQueueCreateInfo<'pnext>>: UnsafeUnpin,
&'arg mut DeviceCreateInfo<'pnext>: UnsafeUnpin,
PhantomData<&'this ()>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more