[−][src]Enum gfx_backend_vulkan::Backend
Trait Implementations
impl Backend for Backend
[src]
type Instance = Instance
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 Clone for Backend
[src]
impl CommandQueue<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>,
unsafe fn present_surface(
&mut self,
surface: &mut Surface,
image: SurfaceImage,
wait_semaphore: Option<&Semaphore>
) -> Result<Option<Suboptimal>, PresentError>
[src]
&mut self,
surface: &mut Surface,
image: SurfaceImage,
wait_semaphore: Option<&Semaphore>
) -> Result<Option<Suboptimal>, PresentError>
fn wait_idle(&self) -> Result<(), OutOfMemory>
[src]
unsafe fn submit_without_semaphores<'a, T, Ic>(
&mut self,
command_buffers: Ic,
fence: Option<&<B as Backend>::Fence>
) where
Ic: IntoIterator<Item = &'a T>,
T: 'a + Borrow<<B as Backend>::CommandBuffer>,
[src]
&mut self,
command_buffers: Ic,
fence: Option<&<B as Backend>::Fence>
) where
Ic: IntoIterator<Item = &'a T>,
T: 'a + Borrow<<B as Backend>::CommandBuffer>,
unsafe fn present_without_semaphores<'a, W, Is>(
&mut self,
swapchains: Is
) -> Result<Option<Suboptimal>, PresentError> where
Is: IntoIterator<Item = (&'a W, u32)>,
W: 'a + Borrow<<B as Backend>::Swapchain>,
[src]
&mut self,
swapchains: Is
) -> Result<Option<Suboptimal>, PresentError> where
Is: IntoIterator<Item = (&'a W, u32)>,
W: 'a + Borrow<<B as Backend>::Swapchain>,
impl Copy for Backend
[src]
impl Debug for Backend
[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_pipeline<'a>(
&self,
desc: &GraphicsPipelineDesc<'a, B>,
cache: Option<&PipelineCache>
) -> Result<GraphicsPipeline, CreationError>
[src]
&self,
desc: &GraphicsPipelineDesc<'a, B>,
cache: Option<&PipelineCache>
) -> Result<GraphicsPipeline, CreationError>
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_pipeline<'a>(
&self,
desc: &ComputePipelineDesc<'a, B>,
cache: Option<&PipelineCache>
) -> Result<ComputePipeline, CreationError>
[src]
&self,
desc: &ComputePipelineDesc<'a, B>,
cache: Option<&PipelineCache>
) -> Result<ComputePipeline, CreationError>
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,
desc: &SamplerDesc
) -> Result<Sampler, AllocationError>
[src]
&self,
desc: &SamplerDesc
) -> 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(
&self,
buffer: &Buffer,
format: Option<Format>,
range: SubRange
) -> Result<BufferView, ViewCreationError>
[src]
&self,
buffer: &Buffer,
format: Option<Format>,
range: SubRange
) -> 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, ViewCreationError>
[src]
&self,
image: &Image,
kind: ViewKind,
format: Format,
swizzle: Swizzle,
range: SubresourceRange
) -> Result<ImageView, ViewCreationError>
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(
&self,
memory: &Memory,
segment: Segment
) -> Result<*mut u8, MapError>
[src]
&self,
memory: &Memory,
segment: Segment
) -> Result<*mut u8, MapError>
unsafe fn unmap_memory(&self, memory: &Memory)
[src]
unsafe fn flush_mapped_memory_ranges<'a, I>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a Memory, Segment)>,
[src]
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a Memory, Segment)>,
unsafe fn invalidate_mapped_memory_ranges<'a, I>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a Memory, Segment)>,
[src]
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
I::Item: Borrow<(&'a Memory, Segment)>,
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<(), OutOfMemory>
[src]
unsafe fn set_image_name(&self, image: &mut Image, name: &str)
[src]
unsafe fn set_buffer_name(&self, buffer: &mut Buffer, name: &str)
[src]
unsafe fn set_command_buffer_name(
&self,
command_buffer: &mut CommandBuffer,
name: &str
)
[src]
&self,
command_buffer: &mut CommandBuffer,
name: &str
)
unsafe fn set_semaphore_name(&self, semaphore: &mut Semaphore, name: &str)
[src]
unsafe fn set_fence_name(&self, fence: &mut Fence, name: &str)
[src]
unsafe fn set_framebuffer_name(&self, framebuffer: &mut Framebuffer, name: &str)
[src]
unsafe fn set_render_pass_name(&self, render_pass: &mut RenderPass, name: &str)
[src]
unsafe fn set_descriptor_set_name(
&self,
descriptor_set: &mut DescriptorSet,
name: &str
)
[src]
&self,
descriptor_set: &mut DescriptorSet,
name: &str
)
unsafe fn set_descriptor_set_layout_name(
&self,
descriptor_set_layout: &mut DescriptorSetLayout,
name: &str
)
[src]
&self,
descriptor_set_layout: &mut DescriptorSetLayout,
name: &str
)
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>
impl Eq 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,
impl Instance<Backend> for Instance
[src]
fn create(name: &str, version: u32) -> Result<Self, UnsupportedBackend>
[src]
fn enumerate_adapters(&self) -> Vec<Adapter<Backend>>
[src]
unsafe fn create_surface(
&self,
has_handle: &impl HasRawWindowHandle
) -> Result<Surface, InitError>
[src]
&self,
has_handle: &impl HasRawWindowHandle
) -> Result<Surface, InitError>
unsafe fn destroy_surface(&self, surface: Surface)
[src]
impl PartialEq<Backend> for Backend
[src]
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 hints(&self) -> Hints
[src]
fn limits(&self) -> Limits
[src]
fn is_valid_cache(&self, cache: &[u8]) -> bool
[src]
impl StructuralEq for Backend
[src]
impl StructuralPartialEq for Backend
[src]
Auto Trait Implementations
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
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> 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>,