pub enum Backend {}
Expand description
Dummy backend.
Trait Implementations§
Source§impl Backend for Backend
impl Backend for Backend
Source§type PhysicalDevice = PhysicalDevice
type PhysicalDevice = PhysicalDevice
The corresponding physical device type for this backend.
Source§type Device = Device
type Device = Device
The corresponding logical device type for this backend.
Source§type QueueFamily = QueueFamily
type QueueFamily = QueueFamily
The corresponding queue family type for this backend.
Source§type Queue = Queue
type Queue = Queue
The corresponding command queue type for this backend.
Source§type CommandBuffer = CommandBuffer
type CommandBuffer = CommandBuffer
The corresponding command buffer type for this backend.
Source§type CommandPool = CommandPool
type CommandPool = CommandPool
The corresponding command pool type for this backend.
Source§type ShaderModule = ()
type ShaderModule = ()
The corresponding shader module type for this backend.
Source§type RenderPass = ()
type RenderPass = ()
The corresponding render pass type for this backend.
Source§type Framebuffer = ()
type Framebuffer = ()
The corresponding framebuffer type for this backend.
Source§type BufferView = ()
type BufferView = ()
The corresponding buffer view type for this backend.
Source§type ComputePipeline = ()
type ComputePipeline = ()
The corresponding compute pipeline type for this backend.
Source§type GraphicsPipeline = ()
type GraphicsPipeline = ()
The corresponding graphics pipeline type for this backend.
Source§type PipelineCache = ()
type PipelineCache = ()
The corresponding pipeline cache type for this backend.
Source§type PipelineLayout = ()
type PipelineLayout = ()
The corresponding pipeline layout type for this backend.
Source§type DescriptorSetLayout = DescriptorSetLayout
type DescriptorSetLayout = DescriptorSetLayout
The corresponding descriptor set layout type for this backend.
Source§type DescriptorPool = DescriptorPool
type DescriptorPool = DescriptorPool
The corresponding descriptor pool type for this backend.
Source§type DescriptorSet = DescriptorSet
type DescriptorSet = DescriptorSet
The corresponding descriptor set type for this backend.
Source§type DisplayMode = ()
type DisplayMode = ()
The corresponding display mode type for this backend
Source§impl CommandBuffer<Backend> for CommandBuffer
impl CommandBuffer<Backend> for CommandBuffer
Source§unsafe fn begin(
&mut self,
_: CommandBufferFlags,
_: CommandBufferInheritanceInfo<'_, Backend>,
)
unsafe fn begin( &mut self, _: CommandBufferFlags, _: CommandBufferInheritanceInfo<'_, Backend>, )
Begins recording commands to a command buffer.
Source§unsafe fn reset(&mut self, _: bool)
unsafe fn reset(&mut self, _: bool)
Empties the command buffer, optionally releasing all
resources from the commands that have been submitted.
Source§unsafe fn pipeline_barrier<'a, T>(
&mut self,
_: Range<PipelineStage>,
_: Dependencies,
_: T,
)
unsafe fn pipeline_barrier<'a, T>( &mut self, _: Range<PipelineStage>, _: Dependencies, _: T, )
Inserts a synchronization dependency between pipeline stages
in the command buffer.
Source§unsafe fn fill_buffer(&mut self, _: &Buffer, _: SubRange, _: u32)
unsafe fn fill_buffer(&mut self, _: &Buffer, _: SubRange, _: u32)
Fill a buffer with the given
u32
value.Source§unsafe fn update_buffer(&mut self, _: &Buffer, _: Offset, _: &[u8])
unsafe fn update_buffer(&mut self, _: &Buffer, _: Offset, _: &[u8])
Copy data from the given slice into a buffer.
Source§unsafe fn clear_image<T>(&mut self, _: &Image, _: Layout, _: ClearValue, _: T)
unsafe fn clear_image<T>(&mut self, _: &Image, _: Layout, _: ClearValue, _: T)
Clears an image to the given color/depth/stencil.
Source§unsafe fn clear_attachments<T, U>(&mut self, _: T, _: U)
unsafe fn clear_attachments<T, U>(&mut self, _: T, _: U)
Takes an iterator of attachments and an iterator of rect’s,
and clears the given rect’s for each attachment.
Source§unsafe fn resolve_image<T>(
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: T,
)
unsafe fn resolve_image<T>( &mut self, _: &Image, _: Layout, _: &Image, _: Layout, _: T, )
“Resolves” a multisampled image, converting it into a non-multisampled
image. Takes an iterator of regions to apply the resolution to.
Source§unsafe fn blit_image<T>(
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: Filter,
_: T,
)
unsafe fn blit_image<T>( &mut self, _: &Image, _: Layout, _: &Image, _: Layout, _: Filter, _: T, )
Copies regions from the source to destination image,
applying scaling, filtering and potentially format conversion.
Source§unsafe fn bind_index_buffer(&mut self, _: &Buffer, _: SubRange, _: IndexType)
unsafe fn bind_index_buffer(&mut self, _: &Buffer, _: SubRange, _: IndexType)
Bind the index buffer view, making it the “current” one that draw commands
will operate on.
Source§unsafe fn bind_vertex_buffers<'a, T>(&mut self, _: u32, _: T)
unsafe fn bind_vertex_buffers<'a, T>(&mut self, _: u32, _: T)
Bind the vertex buffer set, making it the “current” one that draw commands
will operate on. Read more
Source§unsafe fn set_viewports<T>(&mut self, _: u32, _: T)
unsafe fn set_viewports<T>(&mut self, _: u32, _: T)
Source§unsafe fn set_scissors<T>(&mut self, _: u32, _: T)
unsafe fn set_scissors<T>(&mut self, _: u32, _: T)
Set the scissor rectangles for the rasterizer. Read more
Source§unsafe fn set_stencil_reference(&mut self, _: Face, _: StencilValue)
unsafe fn set_stencil_reference(&mut self, _: Face, _: StencilValue)
Sets the stencil reference value for comparison operations and store operations.
Will be used on the LHS of stencil compare ops and as store value when the
store op is Reference.
Source§unsafe fn set_stencil_read_mask(&mut self, _: Face, _: StencilValue)
unsafe fn set_stencil_read_mask(&mut self, _: Face, _: StencilValue)
Sets the stencil read mask.
Source§unsafe fn set_stencil_write_mask(&mut self, _: Face, _: StencilValue)
unsafe fn set_stencil_write_mask(&mut self, _: Face, _: StencilValue)
Sets the stencil write mask.
Source§unsafe fn set_blend_constants(&mut self, _: ColorValue)
unsafe fn set_blend_constants(&mut self, _: ColorValue)
Set the blend constant values dynamically.
Source§unsafe fn set_depth_bounds(&mut self, _: Range<f32>)
unsafe fn set_depth_bounds(&mut self, _: Range<f32>)
Set the depth bounds test values dynamically.
Source§unsafe fn set_line_width(&mut self, _: f32)
unsafe fn set_line_width(&mut self, _: f32)
Set the line width dynamically. Read more
Source§unsafe fn set_depth_bias(&mut self, _: DepthBias)
unsafe fn set_depth_bias(&mut self, _: DepthBias)
Set the depth bias dynamically.
Source§unsafe fn begin_render_pass<'a, T>(
&mut self,
_: &(),
_: &(),
_: Rect,
_: T,
_: SubpassContents,
)
unsafe fn begin_render_pass<'a, T>( &mut self, _: &(), _: &(), _: Rect, _: T, _: SubpassContents, )
Begins recording commands for a render pass on the given framebuffer. Read more
Source§unsafe fn next_subpass(&mut self, _: SubpassContents)
unsafe fn next_subpass(&mut self, _: SubpassContents)
Steps to the next subpass in the current render pass.
Source§unsafe fn end_render_pass(&mut self)
unsafe fn end_render_pass(&mut self)
Finishes recording commands for the current a render pass.
Source§unsafe fn bind_graphics_pipeline(&mut self, _: &())
unsafe fn bind_graphics_pipeline(&mut self, _: &())
Bind a graphics pipeline. Read more
Source§unsafe fn bind_graphics_descriptor_sets<'a, I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J,
)where
I: Iterator<Item = &'a DescriptorSet>,
unsafe fn bind_graphics_descriptor_sets<'a, I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J,
)where
I: Iterator<Item = &'a DescriptorSet>,
Takes an iterator of graphics
DescriptorSet
’s, and binds them to the command buffer.
first_set
is the index that the first descriptor is mapped to in the command buffer.Source§unsafe fn bind_compute_pipeline(&mut self, _: &())
unsafe fn bind_compute_pipeline(&mut self, _: &())
Bind a compute pipeline. Read more
Source§unsafe fn bind_compute_descriptor_sets<'a, I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J,
)where
I: Iterator<Item = &'a DescriptorSet>,
unsafe fn bind_compute_descriptor_sets<'a, I, J>(
&mut self,
_: &(),
_: usize,
_: I,
_: J,
)where
I: Iterator<Item = &'a DescriptorSet>,
Takes an iterator of compute
DescriptorSet
’s, and binds them to the command buffer,
first_set
is the index that the first descriptor is mapped to in the command buffer.Source§unsafe fn dispatch(&mut self, _: WorkGroupCount)
unsafe fn dispatch(&mut self, _: WorkGroupCount)
Execute a workgroup in the compute pipeline.
x
, y
and z
are the
number of local workgroups to dispatch along each “axis”; a total of x
y
z
local workgroups will be created. Read moreSource§unsafe fn dispatch_indirect(&mut self, _: &Buffer, _: Offset)
unsafe fn dispatch_indirect(&mut self, _: &Buffer, _: Offset)
Works similarly to
dispatch()
but reads parameters from the given
buffer during execution.Source§unsafe fn copy_buffer<T>(&mut self, _: &Buffer, _: &Buffer, _: T)
unsafe fn copy_buffer<T>(&mut self, _: &Buffer, _: &Buffer, _: T)
Adds a command to copy regions from the source to destination buffer.
Source§unsafe fn copy_image<T>(
&mut self,
_: &Image,
_: Layout,
_: &Image,
_: Layout,
_: T,
)
unsafe fn copy_image<T>( &mut self, _: &Image, _: Layout, _: &Image, _: Layout, _: T, )
Copies regions from the source to the destination images, which
have the given layouts. No format conversion is done; the source and destination
Layout
’s must have the same sized image formats (such as Rgba8Unorm
and
R32
, both of which are 32 bits).Source§unsafe fn copy_buffer_to_image<T>(
&mut self,
_: &Buffer,
_: &Image,
_: Layout,
_: T,
)
unsafe fn copy_buffer_to_image<T>( &mut self, _: &Buffer, _: &Image, _: Layout, _: T, )
Copies regions from the source buffer to the destination image.
Source§unsafe fn copy_image_to_buffer<T>(
&mut self,
_: &Image,
_: Layout,
_: &Buffer,
_: T,
)
unsafe fn copy_image_to_buffer<T>( &mut self, _: &Image, _: Layout, _: &Buffer, _: T, )
Copies regions from the source image to the destination buffer.
Source§unsafe fn draw(&mut self, _: Range<VertexCount>, _: Range<InstanceCount>)
unsafe fn draw(&mut self, _: Range<VertexCount>, _: Range<InstanceCount>)
Performs a non-indexed drawing operation, fetching vertex attributes
from the currently bound vertex buffers. It performs instanced
drawing, drawing
instances.len()
times with an instanceIndex
starting with the start of the range.Source§unsafe fn draw_indexed(
&mut self,
_: Range<IndexCount>,
_: VertexOffset,
_: Range<InstanceCount>,
)
unsafe fn draw_indexed( &mut self, _: Range<IndexCount>, _: VertexOffset, _: Range<InstanceCount>, )
Performs indexed drawing, drawing the range of indices
given by the current index buffer and any bound vertex buffers.
base_vertex
specifies the vertex offset corresponding to index 0.
That is, the offset into the vertex buffer is (current_index + base_vertex)
Read moreSource§unsafe fn draw_indirect(
&mut self,
_: &Buffer,
_: Offset,
_: DrawCount,
_: Stride,
)
unsafe fn draw_indirect( &mut self, _: &Buffer, _: Offset, _: DrawCount, _: Stride, )
Functions identically to
draw()
, except the parameters are read
from the given buffer, starting at offset
and increasing stride
bytes with each successive draw. Performs draw_count
draws total.
draw_count
may be zero. Read moreSource§unsafe fn draw_indexed_indirect(
&mut self,
_: &Buffer,
_: Offset,
_: DrawCount,
_: Stride,
)
unsafe fn draw_indexed_indirect( &mut self, _: &Buffer, _: Offset, _: DrawCount, _: Stride, )
Like
draw_indirect()
, this does indexed drawing a la draw_indexed()
but
reads the draw parameters out of the given buffer. Read moreSource§unsafe fn draw_indirect_count(
&mut self,
_: &Buffer,
_: Offset,
_: &Buffer,
_: Offset,
_: u32,
_: Stride,
)
unsafe fn draw_indirect_count( &mut self, _: &Buffer, _: Offset, _: &Buffer, _: Offset, _: u32, _: Stride, )
Functions identically to
draw_indirect()
, except the amount of draw
calls are specified by the u32 in count_buffer
at count_buffer_offset
.
There is a limit of max_draw_count
invocations. Read moreSource§unsafe fn draw_indexed_indirect_count(
&mut self,
_: &Buffer,
_: Offset,
_: &Buffer,
_: Offset,
_: u32,
_: Stride,
)
unsafe fn draw_indexed_indirect_count( &mut self, _: &Buffer, _: Offset, _: &Buffer, _: Offset, _: u32, _: Stride, )
Functions identically to
draw_indexed_indirect()
, except the amount of draw
calls are specified by the u32 in count_buffer
at count_buffer_offset
.
There is a limit of max_draw_count
invocations. Read moreSource§unsafe fn draw_mesh_tasks(&mut self, _: TaskCount, _: TaskCount)
unsafe fn draw_mesh_tasks(&mut self, _: TaskCount, _: TaskCount)
Dispatches
task_count
of threads. Similar to compute dispatch.Source§unsafe fn draw_mesh_tasks_indirect(
&mut self,
_: &Buffer,
_: Offset,
_: DrawCount,
_: Stride,
)
unsafe fn draw_mesh_tasks_indirect( &mut self, _: &Buffer, _: Offset, _: DrawCount, _: Stride, )
Indirect version of
draw_mesh_tasks
. Analogous to draw_indirect
, but for mesh shaders.Source§unsafe fn draw_mesh_tasks_indirect_count(
&mut self,
_: &Buffer,
_: Offset,
_: &Buffer,
_: Offset,
_: u32,
_: Stride,
)
unsafe fn draw_mesh_tasks_indirect_count( &mut self, _: &Buffer, _: Offset, _: &Buffer, _: Offset, _: u32, _: Stride, )
Like
draw_mesh_tasks_indirect
except that the draw count is read by
the device from a buffer during execution. The command will read an
unsigned 32-bit integer from count_buffer
located at count_buffer_offset
and use this as the draw count.Source§unsafe fn set_event(&mut self, _: &(), _: PipelineStage)
unsafe fn set_event(&mut self, _: &(), _: PipelineStage)
Signals an event once all specified stages of the shader pipeline have completed.
Source§unsafe fn reset_event(&mut self, _: &(), _: PipelineStage)
unsafe fn reset_event(&mut self, _: &(), _: PipelineStage)
Resets an event once all specified stages of the shader pipeline have completed.
Source§unsafe fn wait_events<'a, I, J>(&mut self, _: I, _: Range<PipelineStage>, _: J)
unsafe fn wait_events<'a, I, J>(&mut self, _: I, _: Range<PipelineStage>, _: J)
Waits at some shader stage(s) until all events have been signalled. Read more
Source§unsafe fn begin_query(&mut self, _: Query<'_, Backend>, _: ControlFlags)
unsafe fn begin_query(&mut self, _: Query<'_, Backend>, _: ControlFlags)
Begins a query operation. Queries count operations or record timestamps
resulting from commands that occur between the beginning and end of the query,
and save the results to the query pool.
Source§unsafe fn reset_query_pool(&mut self, _: &(), _: Range<Id>)
unsafe fn reset_query_pool(&mut self, _: &(), _: Range<Id>)
Reset/clear the values in the given range of the query pool.
Source§unsafe fn copy_query_pool_results(
&mut self,
_: &(),
_: Range<Id>,
_: &Buffer,
_: Offset,
_: Stride,
_: ResultFlags,
)
unsafe fn copy_query_pool_results( &mut self, _: &(), _: Range<Id>, _: &Buffer, _: Offset, _: Stride, _: ResultFlags, )
Copy query results into a buffer.
Source§unsafe fn write_timestamp(&mut self, _: PipelineStage, _: Query<'_, Backend>)
unsafe fn write_timestamp(&mut self, _: PipelineStage, _: Query<'_, Backend>)
Requests a timestamp to be written.
Source§unsafe fn push_graphics_constants(
&mut self,
_: &(),
_: ShaderStageFlags,
_: u32,
_: &[u32],
)
unsafe fn push_graphics_constants( &mut self, _: &(), _: ShaderStageFlags, _: u32, _: &[u32], )
Modify constant data in a graphics pipeline. Push constants are intended to modify data in a
pipeline more quickly than a updating the values inside a descriptor set. Read more
Source§unsafe fn push_compute_constants(&mut self, _: &(), _: u32, _: &[u32])
unsafe fn push_compute_constants(&mut self, _: &(), _: u32, _: &[u32])
Modify constant data in a compute pipeline. Push constants are intended to modify data in a
pipeline more quickly than a updating the values inside a descriptor set. Read more
Source§unsafe fn execute_commands<'a, T>(&mut self, _: T)where
T: Iterator<Item = &'a CommandBuffer>,
unsafe fn execute_commands<'a, T>(&mut self, _: T)where
T: Iterator<Item = &'a CommandBuffer>,
Execute the given secondary command buffers.
Source§unsafe fn insert_debug_marker(&mut self, _: &str, _: u32)
unsafe fn insert_debug_marker(&mut self, _: &str, _: u32)
Debug mark the current spot in the command buffer.
Source§unsafe fn begin_debug_marker(&mut self, _: &str, _: u32)
unsafe fn begin_debug_marker(&mut self, _: &str, _: u32)
Start a debug marker at the current place in the command buffer.
Source§unsafe fn end_debug_marker(&mut self)
unsafe fn end_debug_marker(&mut self)
End the last started debug marker scope.
Source§unsafe fn begin_primary(&mut self, flags: CommandBufferFlags)
unsafe fn begin_primary(&mut self, flags: CommandBufferFlags)
Begins recording a primary command buffer
(that has no inheritance information).
Source§impl CommandPool<Backend> for CommandPool
impl CommandPool<Backend> for CommandPool
Source§unsafe fn allocate_one(&mut self, level: Level) -> CommandBuffer
unsafe fn allocate_one(&mut self, level: Level) -> CommandBuffer
Allocate a single command buffer from the pool. Read more
Source§unsafe fn reset(&mut self, _: bool)
unsafe fn reset(&mut self, _: bool)
Reset the command pool and the corresponding command buffers. Read more
Source§unsafe fn free<I>(&mut self, _: I)
unsafe fn free<I>(&mut self, _: I)
Free command buffers allocated from this pool.
Source§impl Device<Backend> for Device
impl Device<Backend> for Device
Source§unsafe fn create_command_pool(
&self,
_: QueueFamilyId,
_: CommandPoolCreateFlags,
) -> Result<CommandPool, OutOfMemory>
unsafe fn create_command_pool( &self, _: QueueFamilyId, _: CommandPoolCreateFlags, ) -> Result<CommandPool, OutOfMemory>
Create a new command pool for a given queue family. Read more
Source§unsafe fn destroy_command_pool(&self, _: CommandPool)
unsafe fn destroy_command_pool(&self, _: CommandPool)
Destroy a command pool.
Source§unsafe fn allocate_memory(
&self,
memory_type: MemoryTypeId,
size: u64,
) -> Result<Memory, AllocationError>
unsafe fn allocate_memory( &self, memory_type: MemoryTypeId, size: u64, ) -> Result<Memory, AllocationError>
Allocates a memory segment of a specified type. Read more
Source§unsafe fn create_render_pass<'a, Ia, Is, Id>(
&self,
_: Ia,
_: Is,
_: Id,
) -> Result<(), OutOfMemory>where
Is: Iterator<Item = SubpassDesc<'a>>,
unsafe fn create_render_pass<'a, Ia, Is, Id>(
&self,
_: Ia,
_: Is,
_: Id,
) -> Result<(), OutOfMemory>where
Is: Iterator<Item = SubpassDesc<'a>>,
Create a render pass with the given attachments and subpasses. Read more
Source§unsafe fn create_pipeline_layout<'a, Is, Ic>(
&self,
_: Is,
_: Ic,
) -> Result<(), OutOfMemory>where
Is: Iterator<Item = &'a DescriptorSetLayout>,
unsafe fn create_pipeline_layout<'a, Is, Ic>(
&self,
_: Is,
_: Ic,
) -> Result<(), OutOfMemory>where
Is: Iterator<Item = &'a DescriptorSetLayout>,
Create a new pipeline layout object. Read more
Source§unsafe fn create_pipeline_cache(
&self,
_data: Option<&[u8]>,
) -> Result<(), OutOfMemory>
unsafe fn create_pipeline_cache( &self, _data: Option<&[u8]>, ) -> Result<(), OutOfMemory>
Create a pipeline cache object.
Source§unsafe fn get_pipeline_cache_data(
&self,
_cache: &(),
) -> Result<Vec<u8>, OutOfMemory>
unsafe fn get_pipeline_cache_data( &self, _cache: &(), ) -> Result<Vec<u8>, OutOfMemory>
Retrieve data from pipeline cache object.
Source§unsafe fn destroy_pipeline_cache(&self, _: ())
unsafe fn destroy_pipeline_cache(&self, _: ())
Destroy a pipeline cache object.
Source§unsafe fn create_graphics_pipeline<'a>(
&self,
_: &GraphicsPipelineDesc<'a, Backend>,
_: Option<&()>,
) -> Result<(), CreationError>
unsafe fn create_graphics_pipeline<'a>( &self, _: &GraphicsPipelineDesc<'a, Backend>, _: Option<&()>, ) -> Result<(), CreationError>
Create a graphics pipeline. Read more
Source§unsafe fn create_compute_pipeline<'a>(
&self,
_: &ComputePipelineDesc<'a, Backend>,
_: Option<&()>,
) -> Result<(), CreationError>
unsafe fn create_compute_pipeline<'a>( &self, _: &ComputePipelineDesc<'a, Backend>, _: Option<&()>, ) -> Result<(), CreationError>
Create a compute pipeline.
Source§unsafe fn merge_pipeline_caches<'a, I>(
&self,
_: &mut (),
_: I,
) -> Result<(), OutOfMemory>
unsafe fn merge_pipeline_caches<'a, I>( &self, _: &mut (), _: I, ) -> Result<(), OutOfMemory>
Merge a number of source pipeline caches into the target one.
Source§unsafe fn create_framebuffer<I>(
&self,
_: &(),
_: I,
_: Extent,
) -> Result<(), OutOfMemory>
unsafe fn create_framebuffer<I>( &self, _: &(), _: I, _: Extent, ) -> Result<(), OutOfMemory>
Create a new framebuffer object. Read more
Source§unsafe fn create_shader_module(&self, _: &[u32]) -> Result<(), ShaderError>
unsafe fn create_shader_module(&self, _: &[u32]) -> Result<(), ShaderError>
Create a new shader module object from the SPIR-V binary data. Read more
Source§unsafe fn create_sampler(&self, _: &SamplerDesc) -> Result<(), AllocationError>
unsafe fn create_sampler(&self, _: &SamplerDesc) -> Result<(), AllocationError>
Create a new sampler object
Source§unsafe fn create_buffer(
&self,
size: u64,
_: Usage,
_: SparseFlags,
) -> Result<Buffer, CreationError>
unsafe fn create_buffer( &self, size: u64, _: Usage, _: SparseFlags, ) -> Result<Buffer, CreationError>
Create a new buffer (unbound). Read more
Source§unsafe fn get_buffer_requirements(&self, buffer: &Buffer) -> Requirements
unsafe fn get_buffer_requirements(&self, buffer: &Buffer) -> Requirements
Get memory requirements for the buffer
Source§unsafe fn bind_buffer_memory(
&self,
_memory: &Memory,
_: u64,
_: &mut Buffer,
) -> Result<(), BindError>
unsafe fn bind_buffer_memory( &self, _memory: &Memory, _: u64, _: &mut Buffer, ) -> Result<(), BindError>
Bind memory to a buffer. Read more
Source§unsafe fn create_buffer_view(
&self,
_: &Buffer,
_: Option<Format>,
_: SubRange,
) -> Result<(), ViewCreationError>
unsafe fn create_buffer_view( &self, _: &Buffer, _: Option<Format>, _: SubRange, ) -> Result<(), ViewCreationError>
Create a new buffer view object
Source§unsafe fn create_image(
&self,
kind: Kind,
_: Level,
_: Format,
_: Tiling,
_: Usage,
_: SparseFlags,
_: ViewCapabilities,
) -> Result<Image, CreationError>
unsafe fn create_image( &self, kind: Kind, _: Level, _: Format, _: Tiling, _: Usage, _: SparseFlags, _: ViewCapabilities, ) -> Result<Image, CreationError>
Create a new image object
Source§unsafe fn get_image_requirements(&self, image: &Image) -> Requirements
unsafe fn get_image_requirements(&self, image: &Image) -> Requirements
Get memory requirements for the Image
unsafe fn get_image_subresource_footprint( &self, _: &Image, _: Subresource, ) -> SubresourceFootprint
Source§unsafe fn bind_image_memory(
&self,
_memory: &Memory,
_: u64,
_: &mut Image,
) -> Result<(), BindError>
unsafe fn bind_image_memory( &self, _memory: &Memory, _: u64, _: &mut Image, ) -> Result<(), BindError>
Bind device memory to an image object
Source§unsafe fn create_image_view(
&self,
_: &Image,
_: ViewKind,
_: Format,
_: Swizzle,
_: Usage,
_: SubresourceRange,
) -> Result<(), ViewCreationError>
unsafe fn create_image_view( &self, _: &Image, _: ViewKind, _: Format, _: Swizzle, _: Usage, _: SubresourceRange, ) -> Result<(), ViewCreationError>
Create an image view from an existing image
Source§unsafe fn create_descriptor_pool<I>(
&self,
_: usize,
_: I,
_: DescriptorPoolCreateFlags,
) -> Result<DescriptorPool, OutOfMemory>
unsafe fn create_descriptor_pool<I>( &self, _: usize, _: I, _: DescriptorPoolCreateFlags, ) -> Result<DescriptorPool, OutOfMemory>
Create a descriptor pool. Read more
Source§unsafe fn create_descriptor_set_layout<'a, I, J>(
&self,
_bindings: I,
_samplers: J,
) -> Result<DescriptorSetLayout, OutOfMemory>
unsafe fn create_descriptor_set_layout<'a, I, J>( &self, _bindings: I, _samplers: J, ) -> Result<DescriptorSetLayout, OutOfMemory>
Create a descriptor set layout. Read more
Source§unsafe fn write_descriptor_set<'a, I>(
&self,
_: DescriptorSetWrite<'a, Backend, I>,
)
unsafe fn write_descriptor_set<'a, I>( &self, _: DescriptorSetWrite<'a, Backend, I>, )
Specifying the parameters of a descriptor set write operation.
Source§unsafe fn copy_descriptor_set<'a>(&self, _: DescriptorSetCopy<'a, Backend>)
unsafe fn copy_descriptor_set<'a>(&self, _: DescriptorSetCopy<'a, Backend>)
Structure specifying a copy descriptor set operation.
Source§fn create_semaphore(&self) -> Result<(), OutOfMemory>
fn create_semaphore(&self) -> Result<(), OutOfMemory>
Create a new semaphore object.
Source§fn create_fence(&self, _: bool) -> Result<(), OutOfMemory>
fn create_fence(&self, _: bool) -> Result<(), OutOfMemory>
Create a new fence object. Read more
Source§unsafe fn get_fence_status(&self, _: &()) -> Result<bool, DeviceLost>
unsafe fn get_fence_status(&self, _: &()) -> Result<bool, DeviceLost>
true for signaled, false for not ready
Source§fn create_event(&self) -> Result<(), OutOfMemory>
fn create_event(&self) -> Result<(), OutOfMemory>
Create an event object.
Source§unsafe fn get_event_status(&self, _: &()) -> Result<bool, WaitError>
unsafe fn get_event_status(&self, _: &()) -> Result<bool, WaitError>
Query the status of an event. Read more
Source§unsafe fn reset_event(&self, _: &mut ()) -> Result<(), OutOfMemory>
unsafe fn reset_event(&self, _: &mut ()) -> Result<(), OutOfMemory>
Resets an event.
Source§unsafe fn create_query_pool(&self, _: Type, _: u32) -> Result<(), CreationError>
unsafe fn create_query_pool(&self, _: Type, _: u32) -> Result<(), CreationError>
Create a new query pool object Read more
Source§unsafe fn destroy_query_pool(&self, _: ())
unsafe fn destroy_query_pool(&self, _: ())
Destroy a query pool object
Source§unsafe fn get_query_pool_results(
&self,
_: &(),
_: Range<Id>,
_: &mut [u8],
_: Stride,
_: ResultFlags,
) -> Result<bool, WaitError>
unsafe fn get_query_pool_results( &self, _: &(), _: Range<Id>, _: &mut [u8], _: Stride, _: ResultFlags, ) -> Result<bool, WaitError>
Get query pool results into the specified CPU memory.
Returns
Ok(false)
if the results are not ready yet and neither of WAIT
or PARTIAL
flags are set.Source§unsafe fn map_memory(
&self,
memory: &mut Memory,
segment: Segment,
) -> Result<*mut u8, MapError>
unsafe fn map_memory( &self, memory: &mut Memory, segment: Segment, ) -> Result<*mut u8, MapError>
Map a memory object into application address space Read more
Source§unsafe fn unmap_memory(&self, _memory: &mut Memory)
unsafe fn unmap_memory(&self, _memory: &mut Memory)
Unmap a memory object once host access to it is no longer needed by the application
Source§unsafe fn flush_mapped_memory_ranges<'a, I>(
&self,
_: I,
) -> Result<(), OutOfMemory>
unsafe fn flush_mapped_memory_ranges<'a, I>( &self, _: I, ) -> Result<(), OutOfMemory>
Flush mapped memory ranges
Source§unsafe fn invalidate_mapped_memory_ranges<'a, I>(
&self,
_: I,
) -> Result<(), OutOfMemory>
unsafe fn invalidate_mapped_memory_ranges<'a, I>( &self, _: I, ) -> Result<(), OutOfMemory>
Invalidate ranges of non-coherent memory from the host caches
Source§unsafe fn free_memory(&self, _memory: Memory)
unsafe fn free_memory(&self, _memory: Memory)
Free device memory
Source§unsafe fn destroy_shader_module(&self, _: ())
unsafe fn destroy_shader_module(&self, _: ())
Destroy a shader module module Read more
Source§unsafe fn destroy_render_pass(&self, _: ())
unsafe fn destroy_render_pass(&self, _: ())
Destroys a render pass created by this device.
Source§unsafe fn destroy_pipeline_layout(&self, _: ())
unsafe fn destroy_pipeline_layout(&self, _: ())
Destroy a pipeline layout object
Source§unsafe fn destroy_graphics_pipeline(&self, _: ())
unsafe fn destroy_graphics_pipeline(&self, _: ())
Destroy a graphics pipeline. Read more
Source§unsafe fn destroy_compute_pipeline(&self, _: ())
unsafe fn destroy_compute_pipeline(&self, _: ())
Destroy a compute pipeline. Read more
Source§unsafe fn destroy_framebuffer(&self, _: ())
unsafe fn destroy_framebuffer(&self, _: ())
Destroy a framebuffer. Read more
Source§unsafe fn destroy_buffer(&self, _: Buffer)
unsafe fn destroy_buffer(&self, _: Buffer)
Destroy a buffer. Read more
Source§unsafe fn destroy_buffer_view(&self, _: ())
unsafe fn destroy_buffer_view(&self, _: ())
Destroy a buffer view object
Source§unsafe fn destroy_image(&self, _: Image)
unsafe fn destroy_image(&self, _: Image)
Destroy an image. Read more
Source§unsafe fn destroy_image_view(&self, _: ())
unsafe fn destroy_image_view(&self, _: ())
Destroy an image view object
Source§unsafe fn destroy_sampler(&self, _: ())
unsafe fn destroy_sampler(&self, _: ())
Destroy a sampler object
Source§unsafe fn destroy_descriptor_pool(&self, _: DescriptorPool)
unsafe fn destroy_descriptor_pool(&self, _: DescriptorPool)
Destroy a descriptor pool object Read more
Source§unsafe fn destroy_descriptor_set_layout(&self, _: DescriptorSetLayout)
unsafe fn destroy_descriptor_set_layout(&self, _: DescriptorSetLayout)
Destroy a descriptor set layout object
Source§unsafe fn destroy_fence(&self, _: ())
unsafe fn destroy_fence(&self, _: ())
Destroy a fence object
Source§unsafe fn destroy_semaphore(&self, _: ())
unsafe fn destroy_semaphore(&self, _: ())
Destroy a semaphore object.
Source§unsafe fn destroy_event(&self, _: ())
unsafe fn destroy_event(&self, _: ())
Destroy an event object.
Source§fn wait_idle(&self) -> Result<(), OutOfMemory>
fn wait_idle(&self) -> Result<(), OutOfMemory>
Wait for all queues associated with this device to idle. Read more
Source§unsafe fn set_image_name(&self, _: &mut Image, _: &str)
unsafe fn set_image_name(&self, _: &mut Image, _: &str)
Associate a name with an image, for easier debugging in external tools or with validation
layers that can print a friendly name when referring to objects in error messages
Source§unsafe fn set_buffer_name(&self, _: &mut Buffer, _: &str)
unsafe fn set_buffer_name(&self, _: &mut Buffer, _: &str)
Associate a name with a buffer, for easier debugging in external tools or with validation
layers that can print a friendly name when referring to objects in error messages
Source§unsafe fn set_command_buffer_name(&self, _: &mut CommandBuffer, _: &str)
unsafe fn set_command_buffer_name(&self, _: &mut CommandBuffer, _: &str)
Associate a name with a command buffer, for easier debugging in external tools or with
validation layers that can print a friendly name when referring to objects in error messages
Source§unsafe fn set_semaphore_name(&self, _: &mut (), _: &str)
unsafe fn set_semaphore_name(&self, _: &mut (), _: &str)
Associate a name with a semaphore, for easier debugging in external tools or with validation
layers that can print a friendly name when referring to objects in error messages
Source§unsafe fn set_fence_name(&self, _: &mut (), _: &str)
unsafe fn set_fence_name(&self, _: &mut (), _: &str)
Associate a name with a fence, for easier debugging in external tools or with validation
layers that can print a friendly name when referring to objects in error messages
Source§unsafe fn set_framebuffer_name(&self, _: &mut (), _: &str)
unsafe fn set_framebuffer_name(&self, _: &mut (), _: &str)
Associate a name with a framebuffer, for easier debugging in external tools or with
validation layers that can print a friendly name when referring to objects in error messages
Source§unsafe fn set_render_pass_name(&self, _: &mut (), _: &str)
unsafe fn set_render_pass_name(&self, _: &mut (), _: &str)
Associate a name with a render pass, for easier debugging in external tools or with
validation layers that can print a friendly name when referring to objects in error messages
Source§unsafe fn set_descriptor_set_name(&self, set: &mut DescriptorSet, name: &str)
unsafe fn set_descriptor_set_name(&self, set: &mut DescriptorSet, name: &str)
Associate a name with a descriptor set, for easier debugging in external tools or with
validation layers that can print a friendly name when referring to objects in error messages
Source§unsafe fn set_descriptor_set_layout_name(
&self,
layout: &mut DescriptorSetLayout,
name: &str,
)
unsafe fn set_descriptor_set_layout_name( &self, layout: &mut DescriptorSetLayout, name: &str, )
Associate a name with a descriptor set layout, for easier debugging in external tools or
with validation layers that can print a friendly name when referring to objects in error
messages
Source§unsafe fn set_pipeline_layout_name(
&self,
_pipeline_layout: &mut (),
_name: &str,
)
unsafe fn set_pipeline_layout_name( &self, _pipeline_layout: &mut (), _name: &str, )
Associate a name with a pipeline layout, for easier debugging in external tools or with
validation layers that can print a friendly name when referring to objects in error messages
Source§unsafe fn create_allocate_external_buffer(
&self,
_external_memory_type: ExternalBufferMemoryType,
_usage: Usage,
_sparse: SparseFlags,
_type_mask: u32,
_size: u64,
) -> Result<(<Backend as Backend>::Buffer, <Backend as Backend>::Memory), ExternalResourceError>
unsafe fn create_allocate_external_buffer( &self, _external_memory_type: ExternalBufferMemoryType, _usage: Usage, _sparse: SparseFlags, _type_mask: u32, _size: u64, ) -> Result<(<Backend as Backend>::Buffer, <Backend as Backend>::Memory), ExternalResourceError>
Create, allocate and bind a buffer that can be exported. Read more
Source§unsafe fn import_external_buffer(
&self,
_external_memory: ExternalBufferMemory,
_usage: Usage,
_sparse: SparseFlags,
_type_mask: u32,
_size: u64,
) -> Result<(<Backend as Backend>::Buffer, <Backend as Backend>::Memory), ExternalResourceError>
unsafe fn import_external_buffer( &self, _external_memory: ExternalBufferMemory, _usage: Usage, _sparse: SparseFlags, _type_mask: u32, _size: u64, ) -> Result<(<Backend as Backend>::Buffer, <Backend as Backend>::Memory), ExternalResourceError>
Import external memory as binded buffer and memory. Read more
Source§unsafe fn create_allocate_external_image(
&self,
_external_memory_type: ExternalImageMemoryType,
_kind: Kind,
_num_levels: Level,
_format: Format,
_tiling: Tiling,
_usage: Usage,
_sparse: SparseFlags,
_view_caps: ViewCapabilities,
_type_mask: u32,
) -> Result<(<Backend as Backend>::Image, <Backend as Backend>::Memory), ExternalResourceError>
unsafe fn create_allocate_external_image( &self, _external_memory_type: ExternalImageMemoryType, _kind: Kind, _num_levels: Level, _format: Format, _tiling: Tiling, _usage: Usage, _sparse: SparseFlags, _view_caps: ViewCapabilities, _type_mask: u32, ) -> Result<(<Backend as Backend>::Image, <Backend as Backend>::Memory), ExternalResourceError>
Create, allocate and bind an image that can be exported. Read more
Source§unsafe fn import_external_image(
&self,
_external_memory: ExternalImageMemory,
_kind: Kind,
_num_levels: Level,
_format: Format,
_tiling: Tiling,
_usage: Usage,
_sparse: SparseFlags,
_view_caps: ViewCapabilities,
_type_mask: u32,
) -> Result<(<Backend as Backend>::Image, <Backend as Backend>::Memory), ExternalResourceError>
unsafe fn import_external_image( &self, _external_memory: ExternalImageMemory, _kind: Kind, _num_levels: Level, _format: Format, _tiling: Tiling, _usage: Usage, _sparse: SparseFlags, _view_caps: ViewCapabilities, _type_mask: u32, ) -> Result<(<Backend as Backend>::Image, <Backend as Backend>::Memory), ExternalResourceError>
Import external memory as binded image and memory. Read more
Source§unsafe fn export_memory(
&self,
_external_memory_type: ExternalMemoryType,
_memory: &<Backend as Backend>::Memory,
) -> Result<PlatformMemory, ExternalMemoryExportError>
unsafe fn export_memory( &self, _external_memory_type: ExternalMemoryType, _memory: &<Backend as Backend>::Memory, ) -> Result<PlatformMemory, ExternalMemoryExportError>
Export memory as os type (Fd, Handle or Ptr) based on the requested external memory type. Read more
Source§unsafe fn drm_format_modifier(
&self,
_image: &<Backend as Backend>::Image,
) -> Option<DrmModifier>
unsafe fn drm_format_modifier( &self, _image: &<Backend as Backend>::Image, ) -> Option<DrmModifier>
Retrieve the underlying drm format modifier from an image, if any. Read more
Source§unsafe fn reset_fence(&self, _: &mut ()) -> Result<(), OutOfMemory>
unsafe fn reset_fence(&self, _: &mut ()) -> Result<(), OutOfMemory>
Resets a given fence to its original, unsignaled state.
Source§unsafe fn wait_for_fence(&self, _: &(), _: u64) -> Result<bool, WaitError>
unsafe fn wait_for_fence(&self, _: &(), _: u64) -> Result<bool, WaitError>
Blocks until the given fence is signaled.
Returns true if the fence was signaled before the timeout.
Source§unsafe fn set_display_power_state(
&self,
_display: &Display<Backend>,
_power_state: &PowerState,
) -> Result<(), DisplayControlError>
unsafe fn set_display_power_state( &self, _display: &Display<Backend>, _power_state: &PowerState, ) -> Result<(), DisplayControlError>
Control the power state of the provided display
Source§unsafe fn register_device_event(
&self,
_device_event: &DeviceEvent,
_fence: &mut <Backend as Backend>::Fence,
) -> Result<(), DisplayControlError>
unsafe fn register_device_event( &self, _device_event: &DeviceEvent, _fence: &mut <Backend as Backend>::Fence, ) -> Result<(), DisplayControlError>
Register device event
Source§unsafe fn register_display_event(
&self,
_display: &Display<Backend>,
_display_event: &DisplayEvent,
_fence: &mut <Backend as Backend>::Fence,
) -> Result<(), DisplayControlError>
unsafe fn register_display_event( &self, _display: &Display<Backend>, _display_event: &DisplayEvent, _fence: &mut <Backend as Backend>::Fence, ) -> Result<(), DisplayControlError>
Register display event
Source§fn start_capture(&self)
fn start_capture(&self)
Starts frame capture.
Source§fn stop_capture(&self)
fn stop_capture(&self)
Stops frame capture.
Source§unsafe fn create_shader_module_from_naga(
&self,
shader: NagaShader,
) -> Result<<B as Backend>::ShaderModule, (ShaderError, NagaShader)>
unsafe fn create_shader_module_from_naga( &self, shader: NagaShader, ) -> Result<<B as Backend>::ShaderModule, (ShaderError, NagaShader)>
Create a new shader module from the
naga
module.Source§impl Instance<Backend> for Instance
impl Instance<Backend> for Instance
Source§fn create(name: &str, version: u32) -> Result<Self, UnsupportedBackend>
fn create(name: &str, version: u32) -> Result<Self, UnsupportedBackend>
Create a new instance. Read more
Source§fn enumerate_adapters(&self) -> Vec<Adapter<Backend>>
fn enumerate_adapters(&self) -> Vec<Adapter<Backend>>
Return all available graphics adapters.
Source§unsafe fn create_surface(
&self,
raw_window_handle: &impl HasRawWindowHandle,
) -> Result<Surface, InitError>
unsafe fn create_surface( &self, raw_window_handle: &impl HasRawWindowHandle, ) -> Result<Surface, InitError>
Source§unsafe fn destroy_surface(&self, _surface: Surface)
unsafe fn destroy_surface(&self, _surface: Surface)
Destroy a surface, freeing the resources associated with it and
releasing it from this graphics API. Read more
Source§unsafe fn create_display_plane_surface(
&self,
_display_plane: &DisplayPlane<'_, Backend>,
_plane_stack_index: u32,
_transformation: SurfaceTransform,
_alpha: DisplayPlaneAlpha,
_image_extent: Extent2D,
) -> Result<Surface, DisplayPlaneSurfaceError>
unsafe fn create_display_plane_surface( &self, _display_plane: &DisplayPlane<'_, Backend>, _plane_stack_index: u32, _transformation: SurfaceTransform, _alpha: DisplayPlaneAlpha, _image_extent: Extent2D, ) -> Result<Surface, DisplayPlaneSurfaceError>
Source§impl PhysicalDevice<Backend> for PhysicalDevice
impl PhysicalDevice<Backend> for PhysicalDevice
Source§unsafe fn open(
&self,
families: &[(&QueueFamily, &[QueuePriority])],
_requested_features: Features,
) -> Result<Gpu<Backend>, CreationError>
unsafe fn open( &self, families: &[(&QueueFamily, &[QueuePriority])], _requested_features: Features, ) -> Result<Gpu<Backend>, CreationError>
Create a new logical device with the requested features.
If
requested_features
is empty, then only
the core features are supported. Read moreSource§fn format_properties(&self, _: Option<Format>) -> Properties
fn format_properties(&self, _: Option<Format>) -> Properties
Fetch details for a particular format.
Source§fn image_format_properties(
&self,
_: Format,
_dim: u8,
_: Tiling,
_: Usage,
_: ViewCapabilities,
) -> Option<FormatProperties>
fn image_format_properties( &self, _: Format, _dim: u8, _: Tiling, _: Usage, _: ViewCapabilities, ) -> Option<FormatProperties>
Fetch details for a particular image format.
Source§fn memory_properties(&self) -> MemoryProperties
fn memory_properties(&self) -> MemoryProperties
Fetch details for the memory regions provided by the device.
Source§fn external_buffer_properties(
&self,
_usage: Usage,
_sparse: SparseFlags,
_memory_type: ExternalMemoryType,
) -> ExternalMemoryProperties
fn external_buffer_properties( &self, _usage: Usage, _sparse: SparseFlags, _memory_type: ExternalMemoryType, ) -> ExternalMemoryProperties
Get external buffer properties. The parameters specify how the buffer is going to used. Read more
Source§fn external_image_properties(
&self,
_format: Format,
_dimensions: u8,
_tiling: Tiling,
_usage: Usage,
_view_caps: ViewCapabilities,
_memory_type: ExternalMemoryType,
) -> Result<ExternalMemoryProperties, ExternalImagePropertiesError>
fn external_image_properties( &self, _format: Format, _dimensions: u8, _tiling: Tiling, _usage: Usage, _view_caps: ViewCapabilities, _memory_type: ExternalMemoryType, ) -> Result<ExternalMemoryProperties, ExternalImagePropertiesError>
Get external image properties. The parameters specify how the image is going to used. Read more
Source§fn features(&self) -> Features
fn features(&self) -> Features
Returns the features of this
PhysicalDevice
. This usually depends on the graphics API being
used, as well as the actual platform underneath.Source§fn properties(&self) -> PhysicalDeviceProperties
fn properties(&self) -> PhysicalDeviceProperties
Returns the properties of this
PhysicalDevice
. Similarly to Features
, theySource§unsafe fn enumerate_displays(&self) -> Vec<Display<Backend>>
unsafe fn enumerate_displays(&self) -> Vec<Display<Backend>>
Enumerate active displays surface from display.
Please notice that, even if a system has displays attached, they could be not returned because they are managed by some other components.
This function only return the display that are available to be managed by the current application.
Since, generally, while compositor are running they take the control of every display connected, it could be better to run the application directly from the tty to avoid the return of an empty list. Read more
Source§unsafe fn enumerate_compatible_planes(
&self,
_display: &Display<Backend>,
) -> Vec<Plane>
unsafe fn enumerate_compatible_planes( &self, _display: &Display<Backend>, ) -> Vec<Plane>
Enumerate compatibles planes with the provided display. Read more
Source§unsafe fn create_display_mode(
&self,
_display: &Display<Backend>,
_resolution: (u32, u32),
_refresh_rate: u32,
) -> Result<DisplayMode<Backend>, DisplayModeError>
unsafe fn create_display_mode( &self, _display: &Display<Backend>, _resolution: (u32, u32), _refresh_rate: u32, ) -> Result<DisplayMode<Backend>, DisplayModeError>
Create a new display mode from a display, a resolution, a refresh_rate and the plane index.
If the builtin display modes does not satisfy the requirements, this function will try to create a new one. Read more
Source§unsafe fn create_display_plane<'a>(
&self,
_display: &'a DisplayMode<Backend>,
_plane: &'a Plane,
) -> Result<DisplayPlane<'a, Backend>, OutOfMemory>
unsafe fn create_display_plane<'a>( &self, _display: &'a DisplayMode<Backend>, _plane: &'a Plane, ) -> Result<DisplayPlane<'a, Backend>, OutOfMemory>
Create a display plane from a display, a resolution, a refresh_rate and a plane.
If the builtin display modes does not satisfy the requirements, this function will try to create a new one. Read more
Source§fn is_valid_cache(&self, _cache: &[u8]) -> bool
fn is_valid_cache(&self, _cache: &[u8]) -> bool
Check cache compatibility with the
PhysicalDevice
.Source§impl PresentationSurface<Backend> for Surface
impl PresentationSurface<Backend> for Surface
Source§type SwapchainImage = SwapchainImage
type SwapchainImage = SwapchainImage
An opaque type wrapping the swapchain image.
Source§unsafe fn configure_swapchain(
&mut self,
_: &Device,
_: SwapchainConfig,
) -> Result<(), SwapchainError>
unsafe fn configure_swapchain( &mut self, _: &Device, _: SwapchainConfig, ) -> Result<(), SwapchainError>
Set up the swapchain associated with the surface to have the given format.
Source§unsafe fn unconfigure_swapchain(&mut self, _: &Device)
unsafe fn unconfigure_swapchain(&mut self, _: &Device)
Remove the associated swapchain from this surface. Read more
Source§unsafe fn acquire_image(
&mut self,
_: u64,
) -> Result<(SwapchainImage, Option<Suboptimal>), AcquireError>
unsafe fn acquire_image( &mut self, _: u64, ) -> Result<(SwapchainImage, Option<Suboptimal>), AcquireError>
Acquire a new swapchain image for rendering. Read more
Source§impl Queue<Backend> for Queue
impl Queue<Backend> for Queue
Source§unsafe fn submit<'a, Ic, Iw, Is>(
&mut self,
_: Ic,
_: Iw,
_: Is,
_: Option<&mut ()>,
)where
Ic: Iterator<Item = &'a CommandBuffer>,
unsafe fn submit<'a, Ic, Iw, Is>(
&mut self,
_: Ic,
_: Iw,
_: Is,
_: Option<&mut ()>,
)where
Ic: Iterator<Item = &'a CommandBuffer>,
Submit command buffers to queue for execution. Read more
Source§unsafe fn present(
&mut self,
_surface: &mut Surface,
_image: SwapchainImage,
_wait_semaphore: Option<&mut ()>,
) -> Result<Option<Suboptimal>, PresentError>
unsafe fn present( &mut self, _surface: &mut Surface, _image: SwapchainImage, _wait_semaphore: Option<&mut ()>, ) -> Result<Option<Suboptimal>, PresentError>
Present a swapchain image directly to a surface, after waiting on
wait_semaphore
. Read moreSource§fn timestamp_period(&self) -> f32
fn timestamp_period(&self) -> f32
The amount of nanoseconds that causes a timestamp query value to increment by one.
Source§unsafe fn bind_sparse<'a, Iw, Is, Ibi, Ib, Iii, Io, Ii>(
&mut self,
_wait_semaphores: Iw,
_signal_semaphores: Is,
_buffer_memory_binds: Ib,
_image_opaque_memory_binds: Io,
_image_memory_binds: Ii,
_device: &<B as Backend>::Device,
_fence: Option<&<B as Backend>::Fence>,
)where
Ibi: Iterator<Item = &'a SparseBind<&'a <B as Backend>::Memory>>,
Ib: Iterator<Item = (&'a mut <B as Backend>::Buffer, Ibi)>,
Iii: Iterator<Item = &'a SparseImageBind<&'a <B as Backend>::Memory>>,
Io: Iterator<Item = (&'a mut <B as Backend>::Image, Ibi)>,
Ii: Iterator<Item = (&'a mut <B as Backend>::Image, Iii)>,
Iw: Iterator<Item = &'a <B as Backend>::Semaphore>,
Is: Iterator<Item = &'a <B as Backend>::Semaphore>,
unsafe fn bind_sparse<'a, Iw, Is, Ibi, Ib, Iii, Io, Ii>(
&mut self,
_wait_semaphores: Iw,
_signal_semaphores: Is,
_buffer_memory_binds: Ib,
_image_opaque_memory_binds: Io,
_image_memory_binds: Ii,
_device: &<B as Backend>::Device,
_fence: Option<&<B as Backend>::Fence>,
)where
Ibi: Iterator<Item = &'a SparseBind<&'a <B as Backend>::Memory>>,
Ib: Iterator<Item = (&'a mut <B as Backend>::Buffer, Ibi)>,
Iii: Iterator<Item = &'a SparseImageBind<&'a <B as Backend>::Memory>>,
Io: Iterator<Item = (&'a mut <B as Backend>::Image, Ibi)>,
Ii: Iterator<Item = (&'a mut <B as Backend>::Image, Iii)>,
Iw: Iterator<Item = &'a <B as Backend>::Semaphore>,
Is: Iterator<Item = &'a <B as Backend>::Semaphore>,
Sparse memory bind operation. Read more
Source§impl Surface<Backend> for Surface
impl Surface<Backend> for Surface
Source§fn supports_queue_family(&self, _: &QueueFamily) -> bool
fn supports_queue_family(&self, _: &QueueFamily) -> bool
Check if the queue family supports presentation to this surface.
Source§fn capabilities(&self, _: &PhysicalDevice) -> SurfaceCapabilities
fn capabilities(&self, _: &PhysicalDevice) -> SurfaceCapabilities
Query surface capabilities for this physical device. Read more
Source§fn supported_formats(&self, _: &PhysicalDevice) -> Option<Vec<Format>>
fn supported_formats(&self, _: &PhysicalDevice) -> Option<Vec<Format>>
Query surface formats for this physical device. Read more
impl Copy for Backend
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more