[−][src]Enum rendy::util::vulkan::Backend
Trait Implementations
impl Eq for Backend
[src]
impl Copy for Backend
[src]
impl Hash for Backend
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
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 Debug for Backend
[src]
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 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,
ID: IntoIterator,
IS: IntoIterator,
<IA as IntoIterator>::Item: Borrow<Attachment>,
<IS as IntoIterator>::Item: Borrow<SubpassDesc<'a>>,
<ID as IntoIterator>::Item: Borrow<SubpassDependency>,
[src]
&self,
attachments: IA,
subpasses: IS,
dependencies: ID
) -> Result<RenderPass, OutOfMemory> where
IA: IntoIterator,
ID: IntoIterator,
IS: IntoIterator,
<IA as IntoIterator>::Item: Borrow<Attachment>,
<IS as IntoIterator>::Item: Borrow<SubpassDesc<'a>>,
<ID as IntoIterator>::Item: Borrow<SubpassDependency>,
unsafe fn create_pipeline_layout<IS, IR>(
&self,
sets: IS,
push_constant_ranges: IR
) -> Result<PipelineLayout, OutOfMemory> where
IR: IntoIterator,
IS: IntoIterator,
<IS as IntoIterator>::Item: Borrow<DescriptorSetLayout>,
<IR as IntoIterator>::Item: Borrow<(ShaderStageFlags, Range<u32>)>,
[src]
&self,
sets: IS,
push_constant_ranges: IR
) -> Result<PipelineLayout, OutOfMemory> where
IR: IntoIterator,
IS: IntoIterator,
<IS as IntoIterator>::Item: Borrow<DescriptorSetLayout>,
<IR as IntoIterator>::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 as IntoIterator>::Item: Borrow<PipelineCache>,
[src]
&self,
target: &PipelineCache,
sources: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<PipelineCache>,
unsafe fn create_graphics_pipelines<'a, T>(
&self,
descs: T,
cache: Option<&PipelineCache>
) -> Vec<Result<GraphicsPipeline, CreationError>> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<GraphicsPipelineDesc<'a, Backend>>,
[src]
&self,
descs: T,
cache: Option<&PipelineCache>
) -> Vec<Result<GraphicsPipeline, CreationError>> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<GraphicsPipelineDesc<'a, Backend>>,
unsafe fn create_compute_pipelines<'a, T>(
&self,
descs: T,
cache: Option<&PipelineCache>
) -> Vec<Result<ComputePipeline, CreationError>> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ComputePipelineDesc<'a, Backend>>,
[src]
&self,
descs: T,
cache: Option<&PipelineCache>
) -> Vec<Result<ComputePipeline, CreationError>> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ComputePipelineDesc<'a, Backend>>,
unsafe fn create_framebuffer<T>(
&self,
renderpass: &RenderPass,
attachments: T,
extent: Extent
) -> Result<Framebuffer, OutOfMemory> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ImageView>,
[src]
&self,
renderpass: &RenderPass,
attachments: T,
extent: Extent
) -> Result<Framebuffer, OutOfMemory> where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ImageView>,
unsafe fn create_shader_module(
&self,
spirv_data: &[u8]
) -> Result<ShaderModule, ShaderError>
[src]
&self,
spirv_data: &[u8]
) -> 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>(
&self,
buffer: &Buffer,
format: Option<Format>,
range: R
) -> Result<BufferView, ViewCreationError> where
R: RangeArg<u64>,
[src]
&self,
buffer: &Buffer,
format: Option<Format>,
range: R
) -> Result<BufferView, ViewCreationError> where
R: RangeArg<u64>,
unsafe fn create_image(
&self,
kind: Kind,
mip_levels: u8,
format: Format,
tiling: Tiling,
usage: Usage,
view_caps: ViewCapabilities
) -> Result<Image, CreationError>
[src]
&self,
kind: Kind,
mip_levels: u8,
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 as IntoIterator>::Item: Borrow<DescriptorRangeDesc>,
[src]
&self,
max_sets: usize,
descriptor_pools: T,
flags: DescriptorPoolCreateFlags
) -> Result<DescriptorPool, OutOfMemory> where
T: IntoIterator,
<T as IntoIterator>::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,
J: IntoIterator,
<I as IntoIterator>::Item: Borrow<DescriptorSetLayoutBinding>,
<J as IntoIterator>::Item: Borrow<Sampler>,
[src]
&self,
binding_iter: I,
immutable_sampler_iter: J
) -> Result<DescriptorSetLayout, OutOfMemory> where
I: IntoIterator,
J: IntoIterator,
<I as IntoIterator>::Item: Borrow<DescriptorSetLayoutBinding>,
<J as IntoIterator>::Item: Borrow<Sampler>,
unsafe fn write_descriptor_sets<'a, I, J>(&self, write_iter: I) where
I: IntoIterator<Item = DescriptorSetWrite<'a, Backend, J>>,
J: IntoIterator,
<J as IntoIterator>::Item: Borrow<Descriptor<'a, Backend>>,
[src]
I: IntoIterator<Item = DescriptorSetWrite<'a, Backend, J>>,
J: IntoIterator,
<J as IntoIterator>::Item: Borrow<Descriptor<'a, Backend>>,
unsafe fn copy_descriptor_sets<'a, I>(&self, copies: I) where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<DescriptorSetCopy<'a, Backend>>,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<DescriptorSetCopy<'a, Backend>>,
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,
R: RangeArg<u64>,
<I as IntoIterator>::Item: Borrow<(&'a Memory, R)>,
[src]
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
R: RangeArg<u64>,
<I as IntoIterator>::Item: Borrow<(&'a Memory, R)>,
unsafe fn invalidate_mapped_memory_ranges<'a, I, R>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
R: RangeArg<u64>,
<I as IntoIterator>::Item: Borrow<(&'a Memory, R)>,
[src]
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: IntoIterator,
R: RangeArg<u64>,
<I as IntoIterator>::Item: Borrow<(&'a Memory, R)>,
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 as IntoIterator>::Item: Borrow<Fence>,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<Fence>,
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<Fence>,
[src]
&self,
fences: I,
wait: WaitFor,
timeout_ns: u64
) -> Result<bool, OomOrDeviceLost> where
I: IntoIterator,
<I as IntoIterator>::Item: Borrow<Fence>,
unsafe fn get_fence_status(&self, fence: &Fence) -> Result<bool, DeviceLost>
[src]
unsafe fn free_memory(&self, memory: Memory)
[src]
unsafe fn create_query_pool(
&self,
ty: Type,
query_count: u32
) -> Result<QueryPool, CreationError>
[src]
&self,
ty: Type,
query_count: u32
) -> Result<QueryPool, CreationError>
unsafe fn get_query_pool_results(
&self,
pool: &QueryPool,
queries: Range<u32>,
data: &mut [u8],
stride: u64,
flags: ResultFlags
) -> Result<bool, OomOrDeviceLost>
[src]
&self,
pool: &QueryPool,
queries: Range<u32>,
data: &mut [u8],
stride: u64,
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]
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 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
Ic: IntoIterator<Item = &'a T>,
Is: IntoIterator<Item = &'a S>,
Iw: IntoIterator<Item = (&'a S, PipelineStage)>,
S: 'a + Borrow<Semaphore>,
T: 'a + Borrow<CommandBuffer>,
[src]
&mut self,
submission: Submission<Ic, Iw, Is>,
fence: Option<&Fence>
) where
Ic: IntoIterator<Item = &'a T>,
Is: IntoIterator<Item = &'a S>,
Iw: IntoIterator<Item = (&'a S, PipelineStage)>,
S: 'a + Borrow<Semaphore>,
T: 'a + Borrow<CommandBuffer>,
unsafe fn present<'a, W, Is, S, Iw>(
&mut self,
swapchains: Is,
wait_semaphores: Iw
) -> Result<Option<Suboptimal>, PresentError> where
Is: IntoIterator<Item = (&'a W, u32)>,
Iw: IntoIterator<Item = &'a S>,
S: 'a + Borrow<Semaphore>,
W: 'a + Borrow<Swapchain>,
[src]
&mut self,
swapchains: Is,
wait_semaphores: Iw
) -> Result<Option<Suboptimal>, PresentError> where
Is: IntoIterator<Item = (&'a W, u32)>,
Iw: IntoIterator<Item = &'a S>,
S: 'a + Borrow<Semaphore>,
W: 'a + Borrow<Swapchain>,
fn wait_idle(&self) -> Result<(), HostExecutionError>
[src]
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 PhysicalDevice<Backend> for PhysicalDevice
[src]
unsafe fn open(
&self,
families: &[(&QueueFamily, &[f32])],
requested_features: Features
) -> Result<Gpu<Backend>, DeviceCreationError>
[src]
&self,
families: &[(&QueueFamily, &[f32])],
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 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 QueryPool = QueryPool
Auto Trait Implementations
impl Unpin for Backend
impl Sync for Backend
impl Send for Backend
impl UnwindSafe for Backend
impl RefUnwindSafe for Backend
Blanket Implementations
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> 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> 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,
impl<T> Supports<T> for T
[src]
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Erased for T
[src]
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more