Enum gfx_backend_vulkan::Backend [−][src]
pub enum Backend {}
Trait Implementations
type PhysicalDevice = PhysicalDevice
type PhysicalDevice = PhysicalDevice
The corresponding physical device type for this backend.
The corresponding logical device type for this backend.
type QueueFamily = QueueFamily
type QueueFamily = QueueFamily
The corresponding queue family type for this backend.
The corresponding command queue type for this backend.
type CommandBuffer = CommandBuffer
type CommandBuffer = CommandBuffer
The corresponding command buffer type for this backend.
type Memory = Memory
type Memory = Memory
The corresponding memory type for this backend.
type CommandPool = RawCommandPool
type CommandPool = RawCommandPool
The corresponding command pool type for this backend.
type ShaderModule = ShaderModule
type ShaderModule = ShaderModule
The corresponding shader module type for this backend.
type RenderPass = RenderPass
type RenderPass = RenderPass
The corresponding render pass type for this backend.
type Framebuffer = Framebuffer
type Framebuffer = Framebuffer
The corresponding framebuffer type for this backend.
type Buffer = Buffer
type Buffer = Buffer
The corresponding buffer type for this backend.
type BufferView = BufferView
type BufferView = BufferView
The corresponding buffer view type for this backend.
type Image = Image
type Image = Image
The corresponding image type for this backend.
type ImageView = ImageView
type ImageView = ImageView
The corresponding image view type for this backend.
type Sampler = Sampler
type Sampler = Sampler
The corresponding sampler type for this backend.
type ComputePipeline = ComputePipeline
type ComputePipeline = ComputePipeline
The corresponding compute pipeline type for this backend.
type GraphicsPipeline = GraphicsPipeline
type GraphicsPipeline = GraphicsPipeline
The corresponding graphics pipeline type for this backend.
type PipelineLayout = PipelineLayout
type PipelineLayout = PipelineLayout
The corresponding pipeline layout type for this backend.
type PipelineCache = PipelineCache
type PipelineCache = PipelineCache
The corresponding pipeline cache type for this backend.
type DescriptorSetLayout = DescriptorSetLayout
type DescriptorSetLayout = DescriptorSetLayout
The corresponding descriptor set layout type for this backend.
type DescriptorPool = DescriptorPool
type DescriptorPool = DescriptorPool
The corresponding descriptor pool type for this backend.
type DescriptorSet = DescriptorSet
type DescriptorSet = DescriptorSet
The corresponding descriptor set type for this backend.
type Fence = Fence
type Fence = Fence
The corresponding fence type for this backend.
type Semaphore = Semaphore
type Semaphore = Semaphore
The corresponding semaphore type for this backend.
type Event = Event
type Event = Event
The corresponding event type for this backend.
type QueryPool = QueryPool
type QueryPool = QueryPool
The corresponding query pool type for this backend.
type Display = Display
type Display = Display
The corresponding display type for this backend.
type DisplayMode = DisplayMode
type DisplayMode = DisplayMode
The corresponding display mode type for this backend
unsafe fn allocate_memory(
&self,
mem_type: MemoryTypeId,
size: u64
) -> Result<Memory, AllocationError>
unsafe fn allocate_memory(
&self,
mem_type: MemoryTypeId,
size: u64
) -> Result<Memory, AllocationError>
Allocates a memory segment of a specified type. Read more
unsafe fn create_command_pool(
&self,
family: QueueFamilyId,
create_flags: CommandPoolCreateFlags
) -> Result<RawCommandPool, OutOfMemory>
unsafe fn create_command_pool(
&self,
family: QueueFamilyId,
create_flags: CommandPoolCreateFlags
) -> Result<RawCommandPool, OutOfMemory>
Create a new command pool for a given queue family. Read more
Destroy a command pool.
unsafe fn create_render_pass<'a, Ia, Is, Id>(
&self,
attachments: Ia,
subpasses: Is,
dependencies: Id
) -> Result<RenderPass, OutOfMemory> where
Ia: Iterator<Item = Attachment>,
Is: Iterator<Item = SubpassDesc<'a>>,
Id: Iterator<Item = SubpassDependency>,
unsafe fn create_render_pass<'a, Ia, Is, Id>(
&self,
attachments: Ia,
subpasses: Is,
dependencies: Id
) -> Result<RenderPass, OutOfMemory> where
Ia: Iterator<Item = Attachment>,
Is: Iterator<Item = SubpassDesc<'a>>,
Id: Iterator<Item = SubpassDependency>,
Create a render pass with the given attachments and subpasses. Read more
unsafe fn create_pipeline_layout<'a, Is, Ic>(
&self,
set_layouts: Is,
push_constant_ranges: Ic
) -> Result<PipelineLayout, OutOfMemory> where
Is: Iterator<Item = &'a DescriptorSetLayout>,
Ic: Iterator<Item = (ShaderStageFlags, Range<u32>)>,
unsafe fn create_pipeline_layout<'a, Is, Ic>(
&self,
set_layouts: Is,
push_constant_ranges: Ic
) -> Result<PipelineLayout, OutOfMemory> where
Is: Iterator<Item = &'a DescriptorSetLayout>,
Ic: Iterator<Item = (ShaderStageFlags, Range<u32>)>,
Create a new pipeline layout object. Read more
unsafe fn create_pipeline_cache(
&self,
data: Option<&[u8]>
) -> Result<PipelineCache, OutOfMemory>
unsafe fn create_pipeline_cache(
&self,
data: Option<&[u8]>
) -> Result<PipelineCache, OutOfMemory>
Create a pipeline cache object.
unsafe fn get_pipeline_cache_data(
&self,
cache: &PipelineCache
) -> Result<Vec<u8>, OutOfMemory>
unsafe fn get_pipeline_cache_data(
&self,
cache: &PipelineCache
) -> Result<Vec<u8>, OutOfMemory>
Retrieve data from pipeline cache object.
Destroy a pipeline cache object.
unsafe fn merge_pipeline_caches<'a, I>(
&self,
target: &mut PipelineCache,
sources: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = &'a PipelineCache>,
unsafe fn merge_pipeline_caches<'a, I>(
&self,
target: &mut PipelineCache,
sources: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = &'a PipelineCache>,
Merge a number of source pipeline caches into the target one.
unsafe fn create_graphics_pipeline<'a>(
&self,
desc: &GraphicsPipelineDesc<'a, B>,
cache: Option<&PipelineCache>
) -> Result<GraphicsPipeline, CreationError>
unsafe fn create_graphics_pipeline<'a>(
&self,
desc: &GraphicsPipelineDesc<'a, B>,
cache: Option<&PipelineCache>
) -> Result<GraphicsPipeline, CreationError>
Create a graphics pipeline. Read more
unsafe fn create_compute_pipeline<'a>(
&self,
desc: &ComputePipelineDesc<'a, B>,
cache: Option<&PipelineCache>
) -> Result<ComputePipeline, CreationError>
unsafe fn create_compute_pipeline<'a>(
&self,
desc: &ComputePipelineDesc<'a, B>,
cache: Option<&PipelineCache>
) -> Result<ComputePipeline, CreationError>
Create a compute pipeline.
unsafe fn create_framebuffer<T>(
&self,
renderpass: &RenderPass,
attachments: T,
extent: Extent
) -> Result<Framebuffer, OutOfMemory> where
T: Iterator<Item = FramebufferAttachment>,
unsafe fn create_framebuffer<T>(
&self,
renderpass: &RenderPass,
attachments: T,
extent: Extent
) -> Result<Framebuffer, OutOfMemory> where
T: Iterator<Item = FramebufferAttachment>,
Create a new framebuffer object. Read more
unsafe fn create_shader_module(
&self,
spirv_data: &[u32]
) -> Result<ShaderModule, ShaderError>
unsafe fn create_shader_module(
&self,
spirv_data: &[u32]
) -> Result<ShaderModule, ShaderError>
Create a new shader module object from the SPIR-V binary data. Read more
Create a new sampler object
unsafe fn create_buffer(
&self,
size: u64,
usage: Usage,
sparse: SparseFlags
) -> Result<Buffer, CreationError>
unsafe fn create_buffer(
&self,
size: u64,
usage: Usage,
sparse: SparseFlags
) -> Result<Buffer, CreationError>
Create a new buffer (unbound). Read more
Get memory requirements for the buffer
Bind memory to a buffer. Read more
unsafe fn create_buffer_view(
&self,
buffer: &Buffer,
format: Option<Format>,
range: SubRange
) -> Result<BufferView, ViewCreationError>
unsafe fn create_buffer_view(
&self,
buffer: &Buffer,
format: Option<Format>,
range: SubRange
) -> Result<BufferView, ViewCreationError>
Create a new buffer view object
unsafe fn create_image(
&self,
kind: Kind,
mip_levels: Level,
format: Format,
tiling: Tiling,
usage: Usage,
sparse: SparseFlags,
view_caps: ViewCapabilities
) -> Result<Image, CreationError>
unsafe fn create_image(
&self,
kind: Kind,
mip_levels: Level,
format: Format,
tiling: Tiling,
usage: Usage,
sparse: SparseFlags,
view_caps: ViewCapabilities
) -> Result<Image, CreationError>
Create a new image object
Get memory requirements for the Image
unsafe fn get_image_subresource_footprint(
&self,
image: &Image,
subresource: Subresource
) -> SubresourceFootprint
Bind device memory to an image object
unsafe fn create_image_view(
&self,
image: &Image,
kind: ViewKind,
format: Format,
swizzle: Swizzle,
usage: Usage,
range: SubresourceRange
) -> Result<ImageView, ViewCreationError>
unsafe fn create_image_view(
&self,
image: &Image,
kind: ViewKind,
format: Format,
swizzle: Swizzle,
usage: Usage,
range: SubresourceRange
) -> Result<ImageView, ViewCreationError>
Create an image view from an existing image
unsafe fn create_descriptor_pool<T>(
&self,
max_sets: usize,
descriptor_ranges: T,
flags: DescriptorPoolCreateFlags
) -> Result<DescriptorPool, OutOfMemory> where
T: Iterator<Item = DescriptorRangeDesc>,
unsafe fn create_descriptor_pool<T>(
&self,
max_sets: usize,
descriptor_ranges: T,
flags: DescriptorPoolCreateFlags
) -> Result<DescriptorPool, OutOfMemory> where
T: Iterator<Item = DescriptorRangeDesc>,
Create a descriptor pool. Read more
unsafe fn create_descriptor_set_layout<'a, I, J>(
&self,
binding_iter: I,
immutable_samplers: J
) -> Result<DescriptorSetLayout, OutOfMemory> where
I: Iterator<Item = DescriptorSetLayoutBinding>,
J: Iterator<Item = &'a Sampler>,
unsafe fn create_descriptor_set_layout<'a, I, J>(
&self,
binding_iter: I,
immutable_samplers: J
) -> Result<DescriptorSetLayout, OutOfMemory> where
I: Iterator<Item = DescriptorSetLayoutBinding>,
J: Iterator<Item = &'a Sampler>,
Create a descriptor set layout. Read more
unsafe fn write_descriptor_set<'a, I>(&self, op: DescriptorSetWrite<'a, B, I>) where
I: Iterator<Item = Descriptor<'a, B>>,
unsafe fn write_descriptor_set<'a, I>(&self, op: DescriptorSetWrite<'a, B, I>) where
I: Iterator<Item = Descriptor<'a, B>>,
Specifying the parameters of a descriptor set write operation.
Structure specifying a copy descriptor set operation.
Map a memory object into application address space Read more
Unmap a memory object once host access to it is no longer needed by the application
unsafe fn flush_mapped_memory_ranges<'a, I>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
unsafe fn flush_mapped_memory_ranges<'a, I>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
Flush mapped memory ranges
unsafe fn invalidate_mapped_memory_ranges<'a, I>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
unsafe fn invalidate_mapped_memory_ranges<'a, I>(
&self,
ranges: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
Invalidate ranges of non-coherent memory from the host caches
Create a new semaphore object.
Create a new fence object. Read more
Resets a given fence to its original, unsignaled state.
Blocks until all or one of the given fences are signaled. Returns true if fences were signaled before the timeout. Read more
true for signaled, false for not ready
Create an event object.
Query the status of an event. Read more
Sets an event.
Resets an event.
Free device memory
unsafe fn create_query_pool(
&self,
ty: Type,
query_count: Id
) -> Result<QueryPool, CreationError>
unsafe fn create_query_pool(
&self,
ty: Type,
query_count: Id
) -> Result<QueryPool, CreationError>
Create a new query pool object Read more
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. Read more
Destroy a query pool object
Destroy a shader module module Read more
Destroys a render pass created by this device.
Destroy a pipeline layout object
Destroy a graphics pipeline. Read more
Destroy a compute pipeline. Read more
Destroy a framebuffer. Read more
Destroy a buffer. Read more
Destroy a buffer view object
Destroy an image. Read more
Destroy an image view object
Destroy a sampler object
Destroy a descriptor pool object Read more
Destroy a descriptor set layout object
Destroy a fence object
Destroy a semaphore object.
Destroy an event object.
Wait for all queues associated with this device to idle. Read more
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 Read more
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 Read more
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 Read more
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 Read more
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 Read more
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 Read more
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 Read more
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 Read more
unsafe fn set_descriptor_set_layout_name(
&self,
descriptor_set_layout: &mut DescriptorSetLayout,
name: &str
)
unsafe fn set_descriptor_set_layout_name(
&self,
descriptor_set_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 Read more
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 Read more
unsafe fn set_display_power_state(
&self,
display: &Display<B>,
power_state: &PowerState
) -> Result<(), DisplayControlError>
unsafe fn set_display_power_state(
&self,
display: &Display<B>,
power_state: &PowerState
) -> Result<(), DisplayControlError>
Control the power state of the provided display
unsafe fn register_device_event(
&self,
device_event: &DeviceEvent,
fence: &mut <B as Backend>::Fence
) -> Result<(), DisplayControlError>
unsafe fn register_device_event(
&self,
device_event: &DeviceEvent,
fence: &mut <B as Backend>::Fence
) -> Result<(), DisplayControlError>
Register device event
unsafe fn register_display_event(
&self,
display: &Display<B>,
display_event: &DisplayEvent,
fence: &mut <B as Backend>::Fence
) -> Result<(), DisplayControlError>
unsafe fn register_display_event(
&self,
display: &Display<B>,
display_event: &DisplayEvent,
fence: &mut <B as Backend>::Fence
) -> Result<(), DisplayControlError>
Register display event
unsafe fn create_allocate_external_buffer(
&self,
external_memory_type: ExternalBufferMemoryType,
usage: Usage,
sparse: SparseFlags,
type_mask: u32,
size: u64
) -> Result<(Buffer, Memory), ExternalResourceError>
unsafe fn create_allocate_external_buffer(
&self,
external_memory_type: ExternalBufferMemoryType,
usage: Usage,
sparse: SparseFlags,
type_mask: u32,
size: u64
) -> Result<(Buffer, Memory), ExternalResourceError>
Create, allocate and bind a buffer that can be exported. Read more
unsafe fn import_external_buffer(
&self,
external_memory: ExternalBufferMemory,
usage: Usage,
sparse: SparseFlags,
type_mask: u32,
size: u64
) -> Result<(Buffer, Memory), ExternalResourceError>
unsafe fn import_external_buffer(
&self,
external_memory: ExternalBufferMemory,
usage: Usage,
sparse: SparseFlags,
type_mask: u32,
size: u64
) -> Result<(Buffer, Memory), ExternalResourceError>
Import external memory as binded buffer and memory. Read more
unsafe fn create_allocate_external_image(
&self,
external_memory_type: ExternalImageMemoryType,
kind: Kind,
mip_levels: Level,
format: Format,
tiling: Tiling,
usage: Usage,
sparse: SparseFlags,
view_caps: ViewCapabilities,
type_mask: u32
) -> Result<(Image, Memory), ExternalResourceError>
unsafe fn create_allocate_external_image(
&self,
external_memory_type: ExternalImageMemoryType,
kind: Kind,
mip_levels: Level,
format: Format,
tiling: Tiling,
usage: Usage,
sparse: SparseFlags,
view_caps: ViewCapabilities,
type_mask: u32
) -> Result<(Image, Memory), ExternalResourceError>
Create, allocate and bind an image that can be exported. Read more
unsafe fn import_external_image(
&self,
external_memory: ExternalImageMemory,
kind: Kind,
mip_levels: Level,
format: Format,
tiling: Tiling,
usage: Usage,
sparse: SparseFlags,
view_caps: ViewCapabilities,
type_mask: u32
) -> Result<(Image, Memory), ExternalResourceError>
unsafe fn import_external_image(
&self,
external_memory: ExternalImageMemory,
kind: Kind,
mip_levels: Level,
format: Format,
tiling: Tiling,
usage: Usage,
sparse: SparseFlags,
view_caps: ViewCapabilities,
type_mask: u32
) -> Result<(Image, Memory), ExternalResourceError>
Import external memory as binded image and memory. Read more
unsafe fn export_memory(
&self,
external_memory_type: ExternalMemoryType,
memory: &Memory
) -> Result<PlatformMemory, ExternalMemoryExportError>
unsafe fn export_memory(
&self,
external_memory_type: ExternalMemoryType,
memory: &Memory
) -> Result<PlatformMemory, ExternalMemoryExportError>
Export memory as os type (Fd, Handle or Ptr) based on the requested external memory type. Read more
Retrieve the underlying drm format modifier from an image, if any. Read more
Starts frame capture.
Stops frame capture.
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.
Create a new instance. Read more
Return all available graphics adapters.
unsafe fn create_surface(
&self,
has_handle: &impl HasRawWindowHandle
) -> Result<Surface, InitError>
unsafe fn create_surface(
&self,
has_handle: &impl HasRawWindowHandle
) -> Result<Surface, InitError>
Destroy a surface, freeing the resources associated with it and releasing it from this graphics API. Read more
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>
Create a new surface from a display plane. Read more
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 more
Fetch details for a particular format.
fn image_format_properties(
&self,
format: Format,
dimensions: u8,
tiling: Tiling,
usage: Usage,
view_caps: ViewCapabilities
) -> Option<FormatProperties>
fn image_format_properties(
&self,
format: Format,
dimensions: u8,
tiling: Tiling,
usage: Usage,
view_caps: ViewCapabilities
) -> Option<FormatProperties>
Fetch details for a particular image format.
Fetch details for the memory regions provided by the device.
fn external_buffer_properties(
&self,
usage: Usage,
sparse: SparseFlags,
external_memory_type: ExternalMemoryType
) -> ExternalMemoryProperties
fn external_buffer_properties(
&self,
usage: Usage,
sparse: SparseFlags,
external_memory_type: ExternalMemoryType
) -> ExternalMemoryProperties
Get external buffer properties. The parameters specify how the buffer is going to used. Read more
fn external_image_properties(
&self,
format: Format,
dimensions: u8,
tiling: Tiling,
usage: Usage,
view_caps: ViewCapabilities,
external_memory_type: ExternalMemoryType
) -> Result<ExternalMemoryProperties, ExternalImagePropertiesError>
fn external_image_properties(
&self,
format: Format,
dimensions: u8,
tiling: Tiling,
usage: Usage,
view_caps: ViewCapabilities,
external_memory_type: ExternalMemoryType
) -> Result<ExternalMemoryProperties, ExternalImagePropertiesError>
Get external image properties. The parameters specify how the image is going to used. Read more
Returns the features of this PhysicalDevice
. This usually depends on the graphics API being
used, as well as the actual platform underneath. Read more
Returns the properties of this PhysicalDevice
. Similarly to Features
, they
Check cache compatibility with the PhysicalDevice
.
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
Enumerate compatibles planes with the provided display. Read more
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
unsafe fn create_display_plane<'a>(
&self,
display_mode: &'a DisplayMode<Backend>,
plane: &'a Plane
) -> Result<DisplayPlane<'a, Backend>, OutOfMemory>
unsafe fn create_display_plane<'a>(
&self,
display_mode: &'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
Submit command buffers to queue for execution. Read more
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: &Device,
fence: Option<&Fence>
) where
Ibi: Iterator<Item = &'a SparseBind<&'a Memory>>,
Ib: Iterator<Item = (&'a mut Buffer, Ibi)>,
Iii: Iterator<Item = &'a SparseImageBind<&'a Memory>>,
Io: Iterator<Item = (&'a mut Image, Ibi)>,
Ii: Iterator<Item = (&'a mut Image, Iii)>,
Iw: Iterator<Item = &'a Semaphore>,
Is: Iterator<Item = &'a 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: &Device,
fence: Option<&Fence>
) where
Ibi: Iterator<Item = &'a SparseBind<&'a Memory>>,
Ib: Iterator<Item = (&'a mut Buffer, Ibi)>,
Iii: Iterator<Item = &'a SparseImageBind<&'a Memory>>,
Io: Iterator<Item = (&'a mut Image, Ibi)>,
Ii: Iterator<Item = (&'a mut Image, Iii)>,
Iw: Iterator<Item = &'a Semaphore>,
Is: Iterator<Item = &'a Semaphore>,
Sparse memory bind operation. Read more
unsafe fn present(
&mut self,
surface: &mut Surface,
image: SurfaceImage,
wait_semaphore: Option<&mut Semaphore>
) -> Result<Option<Suboptimal>, PresentError>
unsafe fn present(
&mut self,
surface: &mut Surface,
image: SurfaceImage,
wait_semaphore: Option<&mut Semaphore>
) -> Result<Option<Suboptimal>, PresentError>
Present a swapchain image directly to a surface, after waiting on wait_semaphore
. Read more
Wait for the queue to be idle.
The amount of nanoseconds that causes a timestamp query value to increment by one.
Auto Trait Implementations
impl RefUnwindSafe for Backend
impl UnwindSafe for Backend
Blanket Implementations
Mutably borrows from an owned value. Read more