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
.