pub(crate) trait GpuResource {
// Required method
fn new(ctx: &WgpuContext) -> Self
where Self: Sized;
}Expand description
A render resource.
Required Methods§
fn new(ctx: &WgpuContext) -> Selfwhere
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".