pub trait DescriptorHelper {
type WgpuDescriptor<'a>
where Self: 'a;
// Required method
fn to_wgpu(&self) -> Self::WgpuDescriptor<'_>;
}Expand description
Helper trait for converting WGPU descriptors that reference GPU resources.
This is needed because WGPU descriptors contain references to concrete types
like &wgpu::Buffer, but our wrappers contain GpuBuffer.
We’ll implement conversion helpers as needed.
Required Associated Types§
Sourcetype WgpuDescriptor<'a>
where
Self: 'a
type WgpuDescriptor<'a> where Self: 'a
Convert a descriptor that references wrapped GPU types to one that references WGPU types (for real GPU operations).
Required Methods§
fn to_wgpu(&self) -> Self::WgpuDescriptor<'_>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.