pub struct GpuRenderStagesConfig {
pub full_loadstore: Option<bool>,
pub low_overhead: Option<bool>,
pub trace_metrics: Vec<String>,
pub drawcall_stages: Option<bool>,
}Fields§
§full_loadstore: Option<bool>Enable to separate the color and depth/stencil load and store stages into a separate stages. If disabled, the depth/stencil load and store stages will be combined. Disabled by default. This option has no effect if Low Overhead mode is enabled.
low_overhead: Option<bool>Use the low overhead mode for traces. In this mode render stages are combined into a single workload stage. This provides less granular data but induces minimal GPU overhead. Disabled by default.
trace_metrics: Vec<String>Trace metrics to capture for each render stage
drawcall_stages: Option<bool>Enable per-draw-call slices, with real per-occurrence timestamps and metric values, on the gpu.renderstages data source. Disabled by default. When drawcall_stages is enabled, full_loadstore and low_overhead are ignored and their default values are used.
Implementations§
Source§impl GpuRenderStagesConfig
impl GpuRenderStagesConfig
Sourcepub fn full_loadstore(&self) -> bool
pub fn full_loadstore(&self) -> bool
Returns the value of full_loadstore, or the default value if full_loadstore is unset.
Sourcepub fn low_overhead(&self) -> bool
pub fn low_overhead(&self) -> bool
Returns the value of low_overhead, or the default value if low_overhead is unset.
Sourcepub fn drawcall_stages(&self) -> bool
pub fn drawcall_stages(&self) -> bool
Returns the value of drawcall_stages, or the default value if drawcall_stages is unset.
Trait Implementations§
Source§impl Clone for GpuRenderStagesConfig
impl Clone for GpuRenderStagesConfig
Source§fn clone(&self) -> GpuRenderStagesConfig
fn clone(&self) -> GpuRenderStagesConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GpuRenderStagesConfig
impl Debug for GpuRenderStagesConfig
Source§impl Default for GpuRenderStagesConfig
impl Default for GpuRenderStagesConfig
impl Eq for GpuRenderStagesConfig
Source§impl Hash for GpuRenderStagesConfig
impl Hash for GpuRenderStagesConfig
Source§impl Message for GpuRenderStagesConfig
impl Message for GpuRenderStagesConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.