[−][src]Struct amethyst_rendy::rendy::util::vulkan::Device
Trait Implementations
impl Debug for Device
[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,
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
Auto Trait Implementations
impl Unpin for Device
impl Sync for Device
impl Send 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> 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<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
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> Supports<T> for T
[src]
impl<T> Erased for T
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,