Struct relay_event_schema::protocol::GpuContext
source · pub struct GpuContext {Show 16 fields
pub name: Annotated<String>,
pub version: Annotated<String>,
pub id: Annotated<Value>,
pub vendor_id: Annotated<String>,
pub vendor_name: Annotated<String>,
pub memory_size: Annotated<u64>,
pub api_type: Annotated<String>,
pub multi_threaded_rendering: Annotated<bool>,
pub npot_support: Annotated<String>,
pub max_texture_size: Annotated<u64>,
pub graphics_shader_level: Annotated<String>,
pub supports_draw_call_instancing: Annotated<bool>,
pub supports_ray_tracing: Annotated<bool>,
pub supports_compute_shaders: Annotated<bool>,
pub supports_geometry_shaders: Annotated<bool>,
pub other: Object<Value>,
}
Expand description
GPU information.
Example:
"gpu": {
"name": "AMD Radeon Pro 560",
"vendor_name": "Apple",
"memory_size": 4096,
"api_type": "Metal",
"multi_threaded_rendering": true,
"version": "Metal",
"npot_support": "Full"
}
Fields§
§name: Annotated<String>
The name of the graphics device.
version: Annotated<String>
The Version of the graphics device.
id: Annotated<Value>
The PCI identifier of the graphics device.
vendor_id: Annotated<String>
The PCI vendor identifier of the graphics device.
vendor_name: Annotated<String>
The vendor name as reported by the graphics device.
memory_size: Annotated<u64>
The total GPU memory available in Megabytes.
api_type: Annotated<String>
The device low-level API type.
Examples: "Apple Metal"
or "Direct3D11"
multi_threaded_rendering: Annotated<bool>
Whether the GPU has multi-threaded rendering or not.
npot_support: Annotated<String>
The Non-Power-Of-Two support.
max_texture_size: Annotated<u64>
Largest size of a texture that is supported by the graphics hardware.
For Example: 16384
graphics_shader_level: Annotated<String>
Approximate “shader capability” level of the graphics device.
For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)
supports_draw_call_instancing: Annotated<bool>
Whether GPU draw call instancing is supported.
supports_ray_tracing: Annotated<bool>
Whether ray tracing is available on the device.
supports_compute_shaders: Annotated<bool>
Whether compute shaders are available on the device.
supports_geometry_shaders: Annotated<bool>
Whether geometry shaders are available on the device.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
source§impl Clone for GpuContext
impl Clone for GpuContext
source§fn clone(&self) -> GpuContext
fn clone(&self) -> GpuContext
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GpuContext
impl Debug for GpuContext
source§impl Default for GpuContext
impl Default for GpuContext
source§fn default() -> GpuContext
fn default() -> GpuContext
source§impl DefaultContext for GpuContext
impl DefaultContext for GpuContext
source§fn default_key() -> &'static str
fn default_key() -> &'static str
Contexts
.source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
source§fn into_context(self) -> Context
fn into_context(self) -> Context
source§impl Empty for GpuContext
impl Empty for GpuContext
source§impl FromValue for GpuContext
impl FromValue for GpuContext
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
source§impl IntoValue for GpuContext
impl IntoValue for GpuContext
source§fn into_value(self) -> Value
fn into_value(self) -> Value
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
source§impl PartialEq for GpuContext
impl PartialEq for GpuContext
source§impl ProcessValue for GpuContext
impl ProcessValue for GpuContext
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
impl StructuralPartialEq for GpuContext
Auto Trait Implementations§
impl Freeze for GpuContext
impl RefUnwindSafe for GpuContext
impl Send for GpuContext
impl Sync for GpuContext
impl Unpin for GpuContext
impl UnwindSafe for GpuContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)