Struct gfx_backend_empty::Device [−][src]
pub struct Device;
Expand description
Dummy device doing nothing.
Trait Implementations
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
Destroy a command pool.
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
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
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
Create a pipeline cache object.
Retrieve data from pipeline cache object.
Destroy a pipeline cache object.
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
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.
unsafe fn merge_pipeline_caches<'a, I>(
&self,
_: &mut (),
_: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = &'a ()>,
unsafe fn merge_pipeline_caches<'a, I>(
&self,
_: &mut (),
_: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = &'a ()>,
Merge a number of source pipeline caches into the target one.
Create a new framebuffer object. Read more
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,
_: SparseFlags
) -> Result<Buffer, CreationError>
unsafe fn create_buffer(
&self,
size: u64,
_: Usage,
_: 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,
_: Option<Format>,
_: SubRange
) -> Result<(), ViewCreationError>
unsafe fn create_buffer_view(
&self,
_: &Buffer,
_: Option<Format>,
_: SubRange
) -> Result<(), ViewCreationError>
Create a new buffer view object
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
Get memory requirements for the Image
unsafe fn get_image_subresource_footprint(
&self,
_: &Image,
_: Subresource
) -> SubresourceFootprint
Bind device memory to an image object
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
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
unsafe fn create_descriptor_set_layout<'a, I, J>(
&self,
_bindings: I,
_samplers: J
) -> Result<DescriptorSetLayout, OutOfMemory> where
J: Iterator<Item = &'a ()>,
unsafe fn create_descriptor_set_layout<'a, I, J>(
&self,
_bindings: I,
_samplers: J
) -> Result<DescriptorSetLayout, OutOfMemory> where
J: Iterator<Item = &'a ()>,
Create a descriptor set layout. Read more
unsafe fn write_descriptor_set<'a, I>(
&self,
_: DescriptorSetWrite<'a, Backend, I>
) where
I: Iterator<Item = Descriptor<'a, Backend>>,
unsafe fn write_descriptor_set<'a, I>(
&self,
_: DescriptorSetWrite<'a, Backend, I>
) where
I: Iterator<Item = Descriptor<'a, Backend>>,
Specifying the parameters of a descriptor set write operation.
Structure specifying a copy descriptor set operation.
Create a new semaphore object.
Create a new fence object. Read more
true for signaled, false for not ready
Create an event object.
Query the status of an event. Read more
Resets an event.
Create a new query pool object Read more
Destroy a query pool object
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
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,
_: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
unsafe fn flush_mapped_memory_ranges<'a, I>(
&self,
_: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
Flush mapped memory ranges
unsafe fn invalidate_mapped_memory_ranges<'a, I>(
&self,
_: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
unsafe fn invalidate_mapped_memory_ranges<'a, I>(
&self,
_: I
) -> Result<(), OutOfMemory> where
I: Iterator<Item = (&'a Memory, Segment)>,
Invalidate ranges of non-coherent memory from the host caches
Free device memory
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
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
Create, allocate and bind a buffer that can be exported. Read more
Import external memory as binded buffer and memory. Read more
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
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
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
Retrieve the underlying drm format modifier from an image, if any. Read more
Resets a given fence to its original, unsignaled state.
Blocks until the given fence is signaled. Returns true if the fence was signaled before the timeout. Read more
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
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
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
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.
Auto Trait Implementations
impl RefUnwindSafe for Device
impl UnwindSafe for Device