Skip to main content

ShaderPrecompileReport

Struct ShaderPrecompileReport 

Source
pub struct ShaderPrecompileReport { /* private fields */ }
Expand description

Comprehensive telemetry report returned by ahead-of-time GPU shader precompilation and PSO cache queries.

Implementations§

Source§

impl ShaderPrecompileReport

Summary and lookup helpers for ShaderPrecompileReport.

Source

pub fn is_all_ready(&self) -> bool

Returns true when all registered shader programs are ready for zero-hitch rendering.

§Returns
  • bool - true when total_programs > 0 && ready_programs == total_programs.
Source

pub fn entry_for( &self, program: ShaderProgramId, ) -> Option<&ShaderProgramCacheEntry>

Looks up the cache entry for a specific ShaderProgramId.

§Arguments
  • ShaderProgramId - Target built-in shader program identifier.
§Returns
  • Option<&ShaderProgramCacheEntry> - Matching shader cache entry if present.
Source

pub fn summary_line(&self) -> String

Formats a single-line telemetry summary suitable for HUD badges and developer inspector cards.

§Returns
  • String - Formatted shader precompile status line.
Source§

impl ShaderPrecompileReport

Implements impl #impl_generics #name #ty_generics #where_clause.

Source

pub fn get_backend(&self) -> GraphicsBackend

Source

pub fn get_mut_backend(&mut self) -> &mut GraphicsBackend

Source

pub fn set_backend(&mut self, val: GraphicsBackend) -> &mut Self

Source

pub fn get_device_name(&self) -> &String

Source

pub fn get_mut_device_name(&mut self) -> &mut String

Source

pub fn set_device_name(&mut self, val: String) -> &mut Self

Source

pub fn get_hardware_gpu(&self) -> bool

Source

pub fn get_mut_hardware_gpu(&mut self) -> &mut bool

Source

pub fn set_hardware_gpu(&mut self, val: bool) -> &mut Self

Source

pub fn get_binary_archive_enabled(&self) -> bool

Source

pub fn get_mut_binary_archive_enabled(&mut self) -> &mut bool

Source

pub fn set_binary_archive_enabled(&mut self, val: bool) -> &mut Self

Source

pub fn get_binary_archive_hit(&self) -> bool

Source

pub fn get_mut_binary_archive_hit(&mut self) -> &mut bool

Source

pub fn set_binary_archive_hit(&mut self, val: bool) -> &mut Self

Source

pub fn get_cache_hit(&self) -> bool

Source

pub fn get_mut_cache_hit(&mut self) -> &mut bool

Source

pub fn set_cache_hit(&mut self, val: bool) -> &mut Self

Source

pub fn get_total_programs(&self) -> usize

Source

pub fn get_mut_total_programs(&mut self) -> &mut usize

Source

pub fn set_total_programs(&mut self, val: usize) -> &mut Self

Source

pub fn get_ready_programs(&self) -> usize

Source

pub fn get_mut_ready_programs(&mut self) -> &mut usize

Source

pub fn set_ready_programs(&mut self, val: usize) -> &mut Self

Source

pub fn get_hardware_compiled_programs(&self) -> usize

Source

pub fn get_mut_hardware_compiled_programs(&mut self) -> &mut usize

Source

pub fn set_hardware_compiled_programs(&mut self, val: usize) -> &mut Self

Source

pub fn get_cold_compile_us(&self) -> u64

Source

pub fn get_mut_cold_compile_us(&mut self) -> &mut u64

Source

pub fn set_cold_compile_us(&mut self, val: u64) -> &mut Self

Source

pub fn get_last_call_us(&self) -> u64

Source

pub fn get_mut_last_call_us(&mut self) -> &mut u64

Source

pub fn set_last_call_us(&mut self, val: u64) -> &mut Self

Source

pub fn get_entries(&self) -> &Vec<ShaderProgramCacheEntry>

Source

pub fn get_mut_entries(&mut self) -> &mut Vec<ShaderProgramCacheEntry>

Source

pub fn set_entries(&mut self, val: Vec<ShaderProgramCacheEntry>) -> &mut Self

Trait Implementations§

Source§

impl Clone for ShaderPrecompileReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ShaderPrecompileReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ShaderPrecompileReport

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ShaderPrecompileReport

Source§

impl PartialEq for ShaderPrecompileReport

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ShaderPrecompileReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.