[−][src]Enum gfx_backend_vulkan::Backend
Trait Implementations
impl PartialEq<Backend> for Backend
[src]
fn eq(&self, other: &Backend) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for Backend
[src]
fn clone(&self) -> Backend
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Backend
[src]
impl Copy for Backend
[src]
impl Debug for Backend
[src]
impl Hash for Backend
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PhysicalDevice<Backend> for PhysicalDevice
[src]
unsafe fn open(
&self,
families: &[(&QueueFamily, &[QueuePriority])],
requested_features: Features
) -> Result<Gpu<Backend>, DeviceCreationError>
[src]
&self,
families: &[(&QueueFamily, &[QueuePriority])],
requested_features: Features
) -> Result<Gpu<Backend>, DeviceCreationError>
fn format_properties(&self, format: Option<Format>) -> Properties
[src]
fn image_format_properties(
&self,
format: Format,
dimensions: u8,
tiling: Tiling,
usage: Usage,
view_caps: ViewCapabilities
) -> Option<FormatProperties>
[src]
&self,
format: Format,
dimensions: u8,
tiling: Tiling,
usage: Usage,
view_caps: ViewCapabilities
) -> Option<FormatProperties>
fn memory_properties(&self) -> MemoryProperties
[src]
fn features(&self) -> Features
[src]
fn limits(&self) -> Limits
[src]
fn is_valid_cache(&self, cache: &[u8]) -> bool
[src]
impl Device<Backend> for Device
[src]
unsafe fn allocate_memory(
&self,
mem_type: MemoryTypeId,
size: u64
) -> Result<Memory, AllocationError>
[src]
&self,
mem_type: MemoryTypeId,
size: u64
) -> Result<Memory, AllocationError>
unsafe fn create_command_pool(
&self,
family: QueueFamilyId,
create_flags: CommandPoolCreateFlags
) -> Result<RawCommandPool, OutOfMemory>
[src]
&self,
family: QueueFamilyId,
create_flags: CommandPoolCreateFlags
) -> Result<RawCommandPool, OutOfMemory>
unsafe fn destroy_command_pool(&self, pool: RawCommandPool)
[src]
unsafe fn create_render_pass<'a, IA, IS, ID>(
&self,
attachments: IA,
subpasses: IS,
dependencies: ID
) -> Result<RenderPass, OutOfMemory> where
IA: IntoIterator,
IA::Item: Borrow<Attachment>,
IS: IntoIterator,
IS::Item: Borrow<SubpassDesc<'a>>,
ID: IntoIterator,
ID::Item: Borrow<SubpassDependency>,
[src]
&self,
attachments: IA,
subpasses: IS,
dependencies: ID
) -> Result<RenderPass, 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,
sets: IS,
push_constant_ranges: IR
) -> Result<PipelineLayout, OutOfMemory> where
IS: IntoIterator,
IS::Item: Borrow<DescriptorSetLayout>,
IR: IntoIterator,
IR::Item: Borrow<(ShaderStageFlags, Range<u32>)>,
[src]
&self,
sets: IS,
push_constant_ranges: IR
) -> Result<PipelineLayout, OutOfMemory> where
IS: IntoIterator,
IS::Item: Borrow<DescriptorSetLayout>,
IR: IntoIterator,
IR::Item: Borrow<(ShaderStageFlags, Range<u32>)>,
unsafe fn create_pipeline_cache(
&self,
data: Option<&[u8]>
) -> Result<PipelineCache, OutOfMemory>
[src]
&self,
data: Option<&[u8]>
) -> Result<PipelineCache, OutOfMemory>
unsafe fn get_pipeline_cache_data(
&self,
cache: &PipelineCache
) -> Result<Vec<u8>, OutOfMemory>
[src]
&self,
cache: &PipelineCache
) -> Result<Vec<u8>, OutOfMemory>
unsafe fn destroy_pipeline_cache(&self, cache: PipelineCache)
[src]
unsafe fn merge_pipeline_caches<I>(
&self,
target: &PipelineCache,
sources: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<PipelineCache>,
[src]
&self,
target: &PipelineCache,
sources: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<PipelineCache>,
unsafe fn create_graphics_pipelines<'a, T>(
&self,
descs: T,
cache: Option<&PipelineCache>
) -> Vec<Result<GraphicsPipeline, CreationError>> where
T: IntoIterator,
T::Item: Borrow<GraphicsPipelineDesc<'a, B>>,
[src]
&self,
descs: T,
cache: Option<&PipelineCache>
) -> Vec<Result<GraphicsPipeline, CreationError>> where
T: IntoIterator,
T::Item: Borrow<GraphicsPipelineDesc<'a, B>>,
unsafe fn create_compute_pipelines<'a, T>(
&self,
descs: T,
cache: Option<&PipelineCache>
) -> Vec<Result<ComputePipeline, CreationError>> where
T: IntoIterator,
T::Item: Borrow<ComputePipelineDesc<'a, B>>,
[src]
&self,
descs: T,
cache: Option<&PipelineCache>
) -> Vec<Result<ComputePipeline, CreationError>> where
T: IntoIterator,
T::Item: Borrow<ComputePipelineDesc<'a, B>>,
unsafe fn create_framebuffer<T>(
&self,
renderpass: &RenderPass,
attachments: T,
extent: Extent
) -> Result<Framebuffer, OutOfMemory> where
T: IntoIterator,
T::Item: Borrow<ImageView>,
[src]
&self,
renderpass: &RenderPass,
attachments: T,
extent: Extent
) -> Result<Framebuffer, OutOfMemory> where
T: IntoIterator,
T::Item: Borrow<ImageView>,
unsafe fn create_shader_module(
&self,
spirv_data: &[u32]
) -> Result<ShaderModule, ShaderError>
[src]
&self,
spirv_data: &[u32]
) -> Result<ShaderModule, ShaderError>
unsafe fn create_sampler(
&self,
sampler_info: SamplerInfo
) -> Result<Sampler, AllocationError>
[src]
&self,
sampler_info: SamplerInfo
) -> Result<Sampler, AllocationError>
unsafe fn create_buffer(
&self,
size: u64,
usage: Usage
) -> Result<Buffer, CreationError>
[src]
&self,
size: u64,
usage: Usage
) -> Result<Buffer, CreationError>
unsafe fn get_buffer_requirements(&self, buffer: &Buffer) -> Requirements
[src]
unsafe fn bind_buffer_memory(
&self,
memory: &Memory,
offset: u64,
buffer: &mut Buffer
) -> Result<(), BindError>
[src]
&self,
memory: &Memory,
offset: u64,
buffer: &mut Buffer
) -> Result<(), BindError>
unsafe fn create_buffer_view<R: RangeArg<u64>>(
&self,
buffer: &Buffer,
format: Option<Format>,
range: R
) -> Result<BufferView, ViewCreationError>
[src]
&self,
buffer: &Buffer,
format: Option<Format>,
range: R
) -> Result<BufferView, ViewCreationError>
unsafe fn create_image(
&self,
kind: Kind,
mip_levels: Level,
format: Format,
tiling: Tiling,
usage: Usage,
view_caps: ViewCapabilities
) -> Result<Image, CreationError>
[src]
&self,
kind: Kind,
mip_levels: Level,
format: Format,
tiling: Tiling,
usage: Usage,
view_caps: ViewCapabilities
) -> Result<Image, CreationError>
unsafe fn get_image_requirements(&self, image: &Image) -> Requirements
[src]
unsafe fn get_image_subresource_footprint(
&self,
image: &Image,
subresource: Subresource
) -> SubresourceFootprint
[src]
&self,
image: &Image,
subresource: Subresource
) -> SubresourceFootprint
unsafe fn bind_image_memory(
&self,
memory: &Memory,
offset: u64,
image: &mut Image
) -> Result<(), BindError>
[src]
&self,
memory: &Memory,
offset: u64,
image: &mut Image
) -> Result<(), BindError>
unsafe fn create_image_view(
&self,
image: &Image,
kind: ViewKind,
format: Format,
swizzle: Swizzle,
range: SubresourceRange
) -> Result<ImageView, ViewError>
[src]
&self,
image: &Image,
kind: ViewKind,
format: Format,
swizzle: Swizzle,
range: SubresourceRange
) -> Result<ImageView, ViewError>
unsafe fn create_descriptor_pool<T>(
&self,
max_sets: usize,
descriptor_pools: T,
flags: DescriptorPoolCreateFlags
) -> Result<DescriptorPool, OutOfMemory> where
T: IntoIterator,
T::Item: Borrow<DescriptorRangeDesc>,
[src]
&self,
max_sets: usize,
descriptor_pools: T,
flags: DescriptorPoolCreateFlags
) -> Result<DescriptorPool, OutOfMemory> where
T: IntoIterator,
T::Item: Borrow<DescriptorRangeDesc>,
unsafe fn create_descriptor_set_layout<I, J>(
&self,
binding_iter: I,
immutable_sampler_iter: J
) -> Result<DescriptorSetLayout, OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<DescriptorSetLayoutBinding>,
J: IntoIterator,
J::Item: Borrow<Sampler>,
[src]
&self,
binding_iter: I,
immutable_sampler_iter: J
) -> Result<DescriptorSetLayout, OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<DescriptorSetLayoutBinding>,
J: IntoIterator,
J::Item: Borrow<Sampler>,
unsafe fn write_descriptor_sets<'a, I, J>(&self, write_iter: I) where
I: IntoIterator<Item = DescriptorSetWrite<'a, B, J>>,
J: IntoIterator,
J::Item: Borrow<Descriptor<'a, B>>,
[src]
I: IntoIterator<Item = DescriptorSetWrite<'a, B, J>>,
J: IntoIterator,
J::Item: Borrow<Descriptor<'a, B>>,
unsafe fn copy_descriptor_sets<'a, I>(&self, copies: I) where
I: IntoIterator,
I::Item: Borrow<DescriptorSetCopy<'a, B>>,
[src]
I: IntoIterator,
I::Item: Borrow<DescriptorSetCopy<'a, B>>,
unsafe fn map_memory<R>(
&self,
memory: &Memory,
range: R
) -> Result<*mut u8, Error> where
R: RangeArg<u64>,
[src]
&self,
memory: &Memory,
range: R
) -> Result<*mut u8, Error> where
R: RangeArg<u64>,
unsafe fn unmap_memory(&self, memory: &Memory)
[src]
unsafe fn flush_mapped_memory_ranges<'a, I, R>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a Memory, R)>,
R: RangeArg<u64>,
[src]
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a Memory, R)>,
R: RangeArg<u64>,
unsafe fn invalidate_mapped_memory_ranges<'a, I, R>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a Memory, R)>,
R: RangeArg<u64>,
[src]
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a Memory, R)>,
R: RangeArg<u64>,
fn create_semaphore(&self) -> Result<Semaphore, OutOfMemory>
[src]
fn create_fence(&self, signaled: bool) -> Result<Fence, OutOfMemory>
[src]
unsafe fn reset_fences<I>(&self, fences: I) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<Fence>,
[src]
I: IntoIterator,
I::Item: Borrow<Fence>,
unsafe fn wait_for_fences<I>(
&self,
fences: I,
wait: WaitFor,
timeout_ns: u64
) -> Result<bool, OomOrDeviceLost> where
I: IntoIterator,
I::Item: Borrow<Fence>,
[src]
&self,
fences: I,
wait: WaitFor,
timeout_ns: u64
) -> Result<bool, OomOrDeviceLost> where
I: IntoIterator,
I::Item: Borrow<Fence>,
unsafe fn get_fence_status(&self, fence: &Fence) -> Result<bool, DeviceLost>
[src]
fn create_event(&self) -> Result<Event, OutOfMemory>
[src]
unsafe fn get_event_status(
&self,
event: &Event
) -> Result<bool, OomOrDeviceLost>
[src]
&self,
event: &Event
) -> Result<bool, OomOrDeviceLost>
unsafe fn set_event(&self, event: &Event) -> Result<(), OutOfMemory>
[src]
unsafe fn reset_event(&self, event: &Event) -> Result<(), OutOfMemory>
[src]
unsafe fn free_memory(&self, memory: Memory)
[src]
unsafe fn create_query_pool(
&self,
ty: Type,
query_count: Id
) -> Result<QueryPool, CreationError>
[src]
&self,
ty: Type,
query_count: Id
) -> Result<QueryPool, CreationError>
unsafe fn get_query_pool_results(
&self,
pool: &QueryPool,
queries: Range<Id>,
data: &mut [u8],
stride: Offset,
flags: ResultFlags
) -> Result<bool, OomOrDeviceLost>
[src]
&self,
pool: &QueryPool,
queries: Range<Id>,
data: &mut [u8],
stride: Offset,
flags: ResultFlags
) -> Result<bool, OomOrDeviceLost>
unsafe fn create_swapchain(
&self,
surface: &mut Surface,
config: SwapchainConfig,
provided_old_swapchain: Option<Swapchain>
) -> Result<(Swapchain, Vec<Image>), CreationError>
[src]
&self,
surface: &mut Surface,
config: SwapchainConfig,
provided_old_swapchain: Option<Swapchain>
) -> Result<(Swapchain, Vec<Image>), CreationError>
unsafe fn destroy_swapchain(&self, swapchain: Swapchain)
[src]
unsafe fn destroy_query_pool(&self, pool: QueryPool)
[src]
unsafe fn destroy_shader_module(&self, module: ShaderModule)
[src]
unsafe fn destroy_render_pass(&self, rp: RenderPass)
[src]
unsafe fn destroy_pipeline_layout(&self, pl: PipelineLayout)
[src]
unsafe fn destroy_graphics_pipeline(&self, pipeline: GraphicsPipeline)
[src]
unsafe fn destroy_compute_pipeline(&self, pipeline: ComputePipeline)
[src]
unsafe fn destroy_framebuffer(&self, fb: Framebuffer)
[src]
unsafe fn destroy_buffer(&self, buffer: Buffer)
[src]
unsafe fn destroy_buffer_view(&self, view: BufferView)
[src]
unsafe fn destroy_image(&self, image: Image)
[src]
unsafe fn destroy_image_view(&self, view: ImageView)
[src]
unsafe fn destroy_sampler(&self, sampler: Sampler)
[src]
unsafe fn destroy_descriptor_pool(&self, pool: DescriptorPool)
[src]
unsafe fn destroy_descriptor_set_layout(&self, layout: DescriptorSetLayout)
[src]
unsafe fn destroy_fence(&self, fence: Fence)
[src]
unsafe fn destroy_semaphore(&self, semaphore: Semaphore)
[src]
unsafe fn destroy_event(&self, event: Event)
[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_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 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 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
impl Backend for Backend
[src]
type PhysicalDevice = PhysicalDevice
type Device = Device
type Surface = Surface
type Swapchain = Swapchain
type QueueFamily = QueueFamily
type CommandQueue = CommandQueue
type CommandBuffer = CommandBuffer
type Memory = Memory
type CommandPool = RawCommandPool
type ShaderModule = ShaderModule
type RenderPass = RenderPass
type Framebuffer = Framebuffer
type Buffer = Buffer
type BufferView = BufferView
type Image = Image
type ImageView = ImageView
type Sampler = Sampler
type ComputePipeline = ComputePipeline
type GraphicsPipeline = GraphicsPipeline
type PipelineLayout = PipelineLayout
type PipelineCache = PipelineCache
type DescriptorSetLayout = DescriptorSetLayout
type DescriptorPool = DescriptorPool
type DescriptorSet = DescriptorSet
type Fence = Fence
type Semaphore = Semaphore
type Event = Event
type QueryPool = QueryPool
impl RawCommandQueue<Backend> for CommandQueue
[src]
unsafe fn submit<'a, T, Ic, S, Iw, Is>(
&mut self,
submission: Submission<Ic, Iw, Is>,
fence: Option<&Fence>
) where
T: 'a + Borrow<CommandBuffer>,
Ic: IntoIterator<Item = &'a T>,
S: 'a + Borrow<Semaphore>,
Iw: IntoIterator<Item = (&'a S, PipelineStage)>,
Is: IntoIterator<Item = &'a S>,
[src]
&mut self,
submission: Submission<Ic, Iw, Is>,
fence: Option<&Fence>
) where
T: 'a + Borrow<CommandBuffer>,
Ic: IntoIterator<Item = &'a T>,
S: 'a + Borrow<Semaphore>,
Iw: IntoIterator<Item = (&'a S, PipelineStage)>,
Is: IntoIterator<Item = &'a S>,
unsafe fn present<'a, W, Is, S, Iw>(
&mut self,
swapchains: Is,
wait_semaphores: Iw
) -> Result<Option<Suboptimal>, PresentError> where
W: 'a + Borrow<Swapchain>,
Is: IntoIterator<Item = (&'a W, SwapImageIndex)>,
S: 'a + Borrow<Semaphore>,
Iw: IntoIterator<Item = &'a S>,
[src]
&mut self,
swapchains: Is,
wait_semaphores: Iw
) -> Result<Option<Suboptimal>, PresentError> where
W: 'a + Borrow<Swapchain>,
Is: IntoIterator<Item = (&'a W, SwapImageIndex)>,
S: 'a + Borrow<Semaphore>,
Iw: IntoIterator<Item = &'a S>,
fn wait_idle(&self) -> Result<(), HostExecutionError>
[src]
Auto Trait Implementations
impl Send for Backend
impl Unpin for Backend
impl Sync for Backend
impl UnwindSafe for Backend
impl RefUnwindSafe for Backend
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,