[−][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<RawCommandPool, OutOfMemory>
[src]
&self,
_: QueueFamilyId,
_: CommandPoolCreateFlags
) -> Result<RawCommandPool, OutOfMemory>
unsafe fn destroy_command_pool(&self, _: RawCommandPool)
[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 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, _: &[u8]) -> Result<(), ShaderError>
[src]
unsafe fn create_sampler(&self, _: SamplerInfo) -> 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<R: RangeArg<u64>>(
&self,
_: &(),
_: Option<Format>,
_: R
) -> Result<(), ViewCreationError>
[src]
&self,
_: &(),
_: Option<Format>,
_: R
) -> 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<(), ViewError>
[src]
&self,
_: &(),
_: ViewKind,
_: Format,
_: Swizzle,
_: SubresourceRange
) -> Result<(), ViewError>
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]
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<R: RangeArg<u64>>(
&self,
_: &(),
_: R
) -> Result<*mut u8, Error>
[src]
&self,
_: &(),
_: R
) -> Result<*mut u8, Error>
unsafe fn unmap_memory(&self, _: &())
[src]
unsafe fn flush_mapped_memory_ranges<'a, I, R>(
&self,
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a (), R)>,
R: RangeArg<u64>,
[src]
&self,
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a (), R)>,
R: RangeArg<u64>,
unsafe fn invalidate_mapped_memory_ranges<'a, I, R>(
&self,
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a (), R)>,
R: RangeArg<u64>,
[src]
&self,
_: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a (), R)>,
R: RangeArg<u64>,
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 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<(), HostExecutionError>
[src]
unsafe fn create_command_pool_typed<C>(
&self,
group: &QueueGroup<B, C>,
flags: CommandPoolCreateFlags
) -> Result<CommandPool<B, C>, OutOfMemory>
[src]
&self,
group: &QueueGroup<B, C>,
flags: CommandPoolCreateFlags
) -> Result<CommandPool<B, C>, OutOfMemory>
Create a strongly typed command pool wrapper.
unsafe fn create_graphics_pipeline(
&self,
desc: &GraphicsPipelineDesc<'a, B>,
cache: Option<&<B as Backend>::PipelineCache>
) -> Result<<B as Backend>::GraphicsPipeline, CreationError>
[src]
&self,
desc: &GraphicsPipelineDesc<'a, B>,
cache: Option<&<B as Backend>::PipelineCache>
) -> Result<<B as Backend>::GraphicsPipeline, CreationError>
Create a graphics pipeline.
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>>,
Create graphics pipelines.
unsafe fn create_compute_pipeline(
&self,
desc: &ComputePipelineDesc<'a, B>,
cache: Option<&<B as Backend>::PipelineCache>
) -> Result<<B as Backend>::ComputePipeline, CreationError>
[src]
&self,
desc: &ComputePipelineDesc<'a, B>,
cache: Option<&<B as Backend>::PipelineCache>
) -> Result<<B as Backend>::ComputePipeline, CreationError>
Create a compute pipeline.
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>>,
Create compute pipelines.
unsafe fn acquire_mapping_reader<T>(
&self,
memory: &'a <B as Backend>::Memory,
range: Range<u64>
) -> Result<Reader<'a, B, T>, Error> where
T: Copy,
[src]
&self,
memory: &'a <B as Backend>::Memory,
range: Range<u64>
) -> Result<Reader<'a, B, T>, Error> where
T: Copy,
Acquire a mapping Reader. Read more
unsafe fn release_mapping_reader<T>(&self, reader: Reader<'a, B, T>)
[src]
Release a mapping Reader.
unsafe fn acquire_mapping_writer<T>(
&self,
memory: &'a <B as Backend>::Memory,
range: Range<u64>
) -> Result<Writer<'a, B, T>, Error> where
T: Copy,
[src]
&self,
memory: &'a <B as Backend>::Memory,
range: Range<u64>
) -> Result<Writer<'a, B, T>, Error> where
T: Copy,
Acquire a mapping Writer. Read more
unsafe fn release_mapping_writer<T>(
&self,
writer: Writer<'a, B, T>
) -> Result<(), OutOfMemory>
[src]
&self,
writer: Writer<'a, B, T>
) -> Result<(), OutOfMemory>
Release a mapping Writer.
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>
Blocks until the given fence is signaled. Returns true if the fence was signaled before the timeout. Read more
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>,
Blocks until all or one of the given fences are signaled. Returns true if fences were signaled before the timeout. Read more
Auto Trait Implementations
impl Send for Device
impl Unpin for Device
impl Sync for Device
impl UnwindSafe for Device
impl RefUnwindSafe for Device
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,