pub trait Allocator {
type Buffer: Buffer;
type Error: Error;
// Required method
fn create_buffer(
&mut self,
width: u32,
height: u32,
fourcc: Fourcc,
modifiers: &[Modifier],
) -> Result<Self::Buffer, Self::Error>;
}Expand description
Interface to create Buffers
Required Associated Types§
Required Methods§
Trait Implementations§
Implementations on Foreign Types§
Implementors§
Source§impl Allocator for DumbAllocator
Available on crate feature backend_drm only.
impl Allocator for DumbAllocator
Available on crate feature
backend_drm only.Source§impl Allocator for VulkanAllocator
Available on crate feature backend_vulkan only.
impl Allocator for VulkanAllocator
Available on crate feature
backend_vulkan only.