Struct gfx_backend_empty::PhysicalDevice [−][src]
pub struct PhysicalDevice;
Expand description
Dummy physical device.
Trait Implementations
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,
_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.
Fetch details for the memory regions provided by the device.
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
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
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
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: &'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
Auto Trait Implementations
impl RefUnwindSafe for PhysicalDevice
impl Send for PhysicalDevice
impl Sync for PhysicalDevice
impl Unpin for PhysicalDevice
impl UnwindSafe for PhysicalDevice