pub struct GpuCapabilities {Show 21 fields
pub vendor: String,
pub device_name: String,
pub driver_version: String,
pub api_version: String,
pub dedicated_vram_bytes: u64,
pub shared_memory_bytes: u64,
pub max_texture_size: u32,
pub max_compute_invocations: u32,
pub max_uniform_buffer_range: u32,
pub max_storage_buffer_range: u64,
pub supports_timestamp_queries: bool,
pub supports_pipeline_statistics: bool,
pub supports_mesh_shaders: bool,
pub supports_raytracing: bool,
pub supports_variable_rate_shading: bool,
pub supports_conservative_rasterization: bool,
pub supports_sparse_resources: bool,
pub supports_descriptor_indexing: bool,
pub max_draw_indirect_count: u32,
pub subgroup_size: u32,
pub max_compute_shared_memory: u32,
}Fields§
§vendor: String§device_name: String§driver_version: String§api_version: String§dedicated_vram_bytes: u64§max_texture_size: u32§max_compute_invocations: u32§max_uniform_buffer_range: u32§max_storage_buffer_range: u64§supports_timestamp_queries: bool§supports_pipeline_statistics: bool§supports_mesh_shaders: bool§supports_raytracing: bool§supports_variable_rate_shading: bool§supports_conservative_rasterization: bool§supports_sparse_resources: bool§supports_descriptor_indexing: bool§max_draw_indirect_count: u32§subgroup_size: u32Implementations§
Source§impl GpuCapabilities
impl GpuCapabilities
pub fn mock_discrete() -> Self
Trait Implementations§
Source§impl Clone for GpuCapabilities
impl Clone for GpuCapabilities
Source§impl Debug for GpuCapabilities
impl Debug for GpuCapabilities
Auto Trait Implementations§
impl Freeze for GpuCapabilities
impl RefUnwindSafe for GpuCapabilities
impl Send for GpuCapabilities
impl Sync for GpuCapabilities
impl Unpin for GpuCapabilities
impl UnsafeUnpin for GpuCapabilities
impl UnwindSafe for GpuCapabilities
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.