pub struct Device;
pub struct Queue;
impl Queue {
pub fn queue_family_index(&self) -> u32 {
0
}
}
pub struct Image;
pub struct StandardCommandBufferAllocator;
impl StandardCommandBufferAllocator {
pub fn new(_device: Arc<Device>, _create_info: ()) -> Self {
Self {}
}
}
pub struct PrimaryAutoCommandBuffer;
pub struct AutoCommandBufferBuilder<L> {
l: std::marker::PhantomData<L>,
}
impl<L> AutoCommandBufferBuilder<L> {
pub fn primary(
_allocator: &StandardCommandBufferAllocator,
_index: u32,
_cbu: CommandBufferUsage,
) -> Result<Self, ()> {
Ok(Self {
l: Default::default(),
})
}
pub fn blit_image(&self, _blit_image_info: BlitImageInfo) -> Option<()> {
Some(())
}
pub fn build(&self) -> Option<Self> {
Some(Self {
l: Default::default(),
})
}
}
pub trait GpuFuture {
fn then_execute(
&self,
_q: Arc<Queue>,
_cb: AutoCommandBufferBuilder<PrimaryAutoCommandBuffer>,
) -> Option<()> {
Some(())
}
}
pub struct BlitImageInfo {
pub src_image: Arc<Image>,
pub src_image_layout: ImageLayout,
pub dst_image: Arc<Image>,
pub dst_image_layout: ImageLayout,
pub filter: Filter,
}
impl BlitImageInfo {
pub fn images(_src_image: Arc<Image>, _dst_image: Arc<Image>) -> BlitImageInfo {
unimplemented!()
}
}
pub enum Filter {
Nearest,
}
pub enum ImageLayout {}
pub enum CommandBufferUsage {
OneTimeSubmit,
}
use std::sync::Arc;