[−][src]Struct gfx_backend_empty::Device
Dummy device doing nothing.
Trait Implementations
impl Debug for Device
[src]
impl Device<Backend> for Device
[src]
unsafe fn create_command_pool(
&self,
_: QueueFamilyId,
_: CommandPoolCreateFlags
) -> Result<CommandPool, OutOfMemory>
[src]
&self,
_: QueueFamilyId,
_: CommandPoolCreateFlags
) -> Result<CommandPool, OutOfMemory>
unsafe fn destroy_command_pool(&self, _: CommandPool)
[src]
unsafe fn allocate_memory(
&self,
_: MemoryTypeId,
_: u64
) -> Result<(), AllocationError>
[src]
&self,
_: MemoryTypeId,
_: u64
) -> Result<(), AllocationError>
unsafe fn create_render_pass<'a, IA, IS, ID>(
&self,
_: IA,
_: IS,
_: ID
) -> Result<(), OutOfMemory> where
IA: IntoIterator,
IA::Item: Borrow<Attachment>,
IS: IntoIterator,
IS::Item: Borrow<SubpassDesc<'a>>,
ID: IntoIterator,
ID::Item: Borrow<SubpassDependency>,
[src]
&self,
_: IA,
_: IS,
_: ID
) -> Result<(), OutOfMemory> where
IA: IntoIterator,
IA::Item: Borrow<Attachment>,
IS: IntoIterator,
IS::Item: Borrow<SubpassDesc<'a>>,
ID: IntoIterator,
ID::Item: Borrow<SubpassDependency>,
unsafe fn create_pipeline_layout<IS, IR>(
&self,
_: IS,
_: IR
) -> Result<(), OutOfMemory> where
IS: IntoIterator,
IS::Item: Borrow<()>,
IR: IntoIterator,
IR::Item: Borrow<(ShaderStageFlags, Range<u32>)>,
[src]
&self,
_: IS,
_: IR
) -> Result<(), OutOfMemory> where
IS: IntoIterator,
IS::Item: Borrow<()>,
IR: IntoIterator,
IR::Item: Borrow<(ShaderStageFlags, Range<u32>)>,
unsafe fn create_pipeline_cache(
&self,
_data: Option<&[u8]>
) -> Result<(), OutOfMemory>
[src]
&self,
_data: Option<&[u8]>
) -> Result<(), OutOfMemory>
unsafe fn get_pipeline_cache_data(
&self,
_cache: &()
) -> Result<Vec<u8>, OutOfMemory>
[src]
&self,
_cache: &()
) -> Result<Vec<u8>, OutOfMemory>
unsafe fn destroy_pipeline_cache(&self, _: ())
[src]
unsafe fn create_graphics_pipeline<'a>(
&self,
_: &GraphicsPipelineDesc<'a, Backend>,
_: Option<&()>
) -> Result<(), CreationError>
[src]
&self,
_: &GraphicsPipelineDesc<'a, Backend>,
_: Option<&()>
) -> Result<(), CreationError>
unsafe fn create_compute_pipeline<'a>(
&self,
_: &ComputePipelineDesc<'a, Backend>,
_: Option<&()>
) -> Result<(), CreationError>
[src]
&self,
_: &ComputePipelineDesc<'a, Backend>,
_: Option<&()>
) -> Result<(), CreationError>
unsafe fn merge_pipeline_caches<I>(
&self,
_: &(),
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<()>,
[src]
&self,
_: &(),
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<()>,
unsafe fn create_framebuffer<I>(
&self,
_: &(),
_: I,
_: Extent
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<()>,
[src]
&self,
_: &(),
_: I,
_: Extent
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<()>,
unsafe fn create_shader_module(&self, _: &[u32]) -> Result<(), ShaderError>
[src]
unsafe fn create_sampler(&self, _: &SamplerDesc) -> Result<(), AllocationError>
[src]
unsafe fn create_buffer(&self, _: u64, _: Usage) -> Result<(), CreationError>
[src]
unsafe fn get_buffer_requirements(&self, _: &()) -> Requirements
[src]
unsafe fn bind_buffer_memory(
&self,
_: &(),
_: u64,
_: &mut ()
) -> Result<(), BindError>
[src]
&self,
_: &(),
_: u64,
_: &mut ()
) -> Result<(), BindError>
unsafe fn create_buffer_view(
&self,
_: &(),
_: Option<Format>,
_: SubRange
) -> Result<(), ViewCreationError>
[src]
&self,
_: &(),
_: Option<Format>,
_: SubRange
) -> Result<(), ViewCreationError>
unsafe fn create_image(
&self,
_: Kind,
_: Level,
_: Format,
_: Tiling,
_: Usage,
_: ViewCapabilities
) -> Result<(), CreationError>
[src]
&self,
_: Kind,
_: Level,
_: Format,
_: Tiling,
_: Usage,
_: ViewCapabilities
) -> Result<(), CreationError>
unsafe fn get_image_requirements(&self, _: &()) -> Requirements
[src]
unsafe fn get_image_subresource_footprint(
&self,
_: &(),
_: Subresource
) -> SubresourceFootprint
[src]
&self,
_: &(),
_: Subresource
) -> SubresourceFootprint
unsafe fn bind_image_memory(
&self,
_: &(),
_: u64,
_: &mut ()
) -> Result<(), BindError>
[src]
&self,
_: &(),
_: u64,
_: &mut ()
) -> Result<(), BindError>
unsafe fn create_image_view(
&self,
_: &(),
_: ViewKind,
_: Format,
_: Swizzle,
_: SubresourceRange
) -> Result<(), ViewCreationError>
[src]
&self,
_: &(),
_: ViewKind,
_: Format,
_: Swizzle,
_: SubresourceRange
) -> Result<(), ViewCreationError>
unsafe fn create_descriptor_pool<I>(
&self,
_: usize,
_: I,
_: DescriptorPoolCreateFlags
) -> Result<DescriptorPool, OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<DescriptorRangeDesc>,
[src]
&self,
_: usize,
_: I,
_: DescriptorPoolCreateFlags
) -> Result<DescriptorPool, OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<DescriptorRangeDesc>,
unsafe fn create_descriptor_set_layout<I, J>(
&self,
_: I,
_: J
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<DescriptorSetLayoutBinding>,
J: IntoIterator,
J::Item: Borrow<()>,
[src]
&self,
_: I,
_: J
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<DescriptorSetLayoutBinding>,
J: IntoIterator,
J::Item: Borrow<()>,
unsafe fn write_descriptor_sets<'a, I, J>(&self, _: I) where
I: IntoIterator<Item = DescriptorSetWrite<'a, Backend, J>>,
J: IntoIterator,
J::Item: Borrow<Descriptor<'a, Backend>>,
[src]
I: IntoIterator<Item = DescriptorSetWrite<'a, Backend, J>>,
J: IntoIterator,
J::Item: Borrow<Descriptor<'a, Backend>>,
unsafe fn copy_descriptor_sets<'a, I>(&self, _: I) where
I: IntoIterator,
I::Item: Borrow<DescriptorSetCopy<'a, Backend>>,
[src]
I: IntoIterator,
I::Item: Borrow<DescriptorSetCopy<'a, Backend>>,
fn create_semaphore(&self) -> Result<(), OutOfMemory>
[src]
fn create_fence(&self, _: bool) -> Result<(), OutOfMemory>
[src]
unsafe fn get_fence_status(&self, _: &()) -> Result<bool, DeviceLost>
[src]
fn create_event(&self) -> Result<(), OutOfMemory>
[src]
unsafe fn get_event_status(&self, _: &()) -> Result<bool, OomOrDeviceLost>
[src]
unsafe fn set_event(&self, _: &()) -> Result<(), OutOfMemory>
[src]
unsafe fn reset_event(&self, _: &()) -> Result<(), OutOfMemory>
[src]
unsafe fn create_query_pool(&self, _: Type, _: u32) -> Result<(), CreationError>
[src]
unsafe fn destroy_query_pool(&self, _: ())
[src]
unsafe fn get_query_pool_results(
&self,
_: &(),
_: Range<Id>,
_: &mut [u8],
_: Offset,
_: ResultFlags
) -> Result<bool, OomOrDeviceLost>
[src]
&self,
_: &(),
_: Range<Id>,
_: &mut [u8],
_: Offset,
_: ResultFlags
) -> Result<bool, OomOrDeviceLost>
unsafe fn map_memory(&self, _: &(), _: Segment) -> Result<*mut u8, MapError>
[src]
unsafe fn unmap_memory(&self, _: &())
[src]
unsafe fn flush_mapped_memory_ranges<'a, I>(
&self,
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a (), Segment)>,
[src]
&self,
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a (), Segment)>,
unsafe fn invalidate_mapped_memory_ranges<'a, I>(
&self,
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a (), Segment)>,
[src]
&self,
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a (), Segment)>,
unsafe fn free_memory(&self, _: ())
[src]
unsafe fn destroy_shader_module(&self, _: ())
[src]
unsafe fn destroy_render_pass(&self, _: ())
[src]
unsafe fn destroy_pipeline_layout(&self, _: ())
[src]
unsafe fn destroy_graphics_pipeline(&self, _: ())
[src]
unsafe fn destroy_compute_pipeline(&self, _: ())
[src]
unsafe fn destroy_framebuffer(&self, _: ())
[src]
unsafe fn destroy_buffer(&self, _: ())
[src]
unsafe fn destroy_buffer_view(&self, _: ())
[src]
unsafe fn destroy_image(&self, _: ())
[src]
unsafe fn destroy_image_view(&self, _: ())
[src]
unsafe fn destroy_sampler(&self, _: ())
[src]
unsafe fn destroy_descriptor_pool(&self, _: DescriptorPool)
[src]
unsafe fn destroy_descriptor_set_layout(&self, _: ())
[src]
unsafe fn destroy_fence(&self, _: ())
[src]
unsafe fn destroy_semaphore(&self, _: ())
[src]
unsafe fn destroy_event(&self, _: ())
[src]
unsafe fn create_swapchain(
&self,
_: &mut Surface,
_: SwapchainConfig,
_: Option<Swapchain>
) -> Result<(Swapchain, Vec<()>), CreationError>
[src]
&self,
_: &mut Surface,
_: SwapchainConfig,
_: Option<Swapchain>
) -> Result<(Swapchain, Vec<()>), CreationError>
unsafe fn destroy_swapchain(&self, _: Swapchain)
[src]
fn wait_idle(&self) -> Result<(), OutOfMemory>
[src]
unsafe fn set_image_name(&self, _: &mut (), _: &str)
[src]
unsafe fn set_buffer_name(&self, _: &mut (), _: &str)
[src]
unsafe fn set_command_buffer_name(&self, _: &mut CommandBuffer, _: &str)
[src]
unsafe fn set_semaphore_name(&self, _: &mut (), _: &str)
[src]
unsafe fn set_fence_name(&self, _: &mut (), _: &str)
[src]
unsafe fn set_framebuffer_name(&self, _: &mut (), _: &str)
[src]
unsafe fn set_render_pass_name(&self, _: &mut (), _: &str)
[src]
unsafe fn set_descriptor_set_name(&self, _: &mut (), _: &str)
[src]
unsafe fn set_descriptor_set_layout_name(&self, _: &mut (), _: &str)
[src]
unsafe fn create_graphics_pipelines<'a, I>(
&self,
descs: I,
cache: Option<&<B as Backend>::PipelineCache>
) -> Vec<Result<<B as Backend>::GraphicsPipeline, CreationError>> where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<GraphicsPipelineDesc<'a, B>>,
[src]
&self,
descs: I,
cache: Option<&<B as Backend>::PipelineCache>
) -> Vec<Result<<B as Backend>::GraphicsPipeline, CreationError>> where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<GraphicsPipelineDesc<'a, B>>,
unsafe fn create_compute_pipelines<'a, I>(
&self,
descs: I,
cache: Option<&<B as Backend>::PipelineCache>
) -> Vec<Result<<B as Backend>::ComputePipeline, CreationError>> where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<ComputePipelineDesc<'a, B>>,
[src]
&self,
descs: I,
cache: Option<&<B as Backend>::PipelineCache>
) -> Vec<Result<<B as Backend>::ComputePipeline, CreationError>> where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<ComputePipelineDesc<'a, B>>,
unsafe fn reset_fence(
&self,
fence: &<B as Backend>::Fence
) -> Result<(), OutOfMemory>
[src]
&self,
fence: &<B as Backend>::Fence
) -> Result<(), OutOfMemory>
unsafe fn reset_fences<I>(&self, fences: I) -> Result<(), OutOfMemory> where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::Fence>,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::Fence>,
unsafe fn wait_for_fence(
&self,
fence: &<B as Backend>::Fence,
timeout_ns: u64
) -> Result<bool, OomOrDeviceLost>
[src]
&self,
fence: &<B as Backend>::Fence,
timeout_ns: u64
) -> Result<bool, OomOrDeviceLost>
unsafe fn wait_for_fences<I>(
&self,
fences: I,
wait: WaitFor,
timeout_ns: u64
) -> Result<bool, OomOrDeviceLost> where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::Fence>,
[src]
&self,
fences: I,
wait: WaitFor,
timeout_ns: u64
) -> Result<bool, OomOrDeviceLost> where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::Fence>,
Auto Trait Implementations
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,