pub struct GpuProfilerQuery {
pub label: String,
pub pid: u32,
pub tid: ThreadId,
/* private fields */
}Expand description
An inflight query for the profiler.
If timer queries are enabled, this represents a reserved timer query pair on
one of the profiler’s query sets.
Must be closed by calling GpuProfiler::end_query.
Emitted by GpuProfiler::begin_query/GpuProfiler::begin_pass_query and consumed by GpuProfiler::end_query.
Fields§
§label: StringThe label assigned to this query.
Will be moved into GpuProfilerQuery::label once the query is fully processed.
pid: u32The process id of the process that opened this query.
tid: ThreadIdThe thread id of the thread that opened this query.
Implementations§
Source§impl GpuProfilerQuery
impl GpuProfilerQuery
Sourcepub fn render_pass_timestamp_writes(
&self,
) -> Option<RenderPassTimestampWrites<'_>>
pub fn render_pass_timestamp_writes( &self, ) -> Option<RenderPassTimestampWrites<'_>>
Use the reserved query for render pass timestamp writes if any.
Use this only for a single render/compute pass, otherwise results will be overwritten.
Only ever returns Some for queries that were created using GpuProfiler::begin_pass_query.
Sourcepub fn compute_pass_timestamp_writes(
&self,
) -> Option<ComputePassTimestampWrites<'_>>
pub fn compute_pass_timestamp_writes( &self, ) -> Option<ComputePassTimestampWrites<'_>>
Use the reserved query for compute pass timestamp writes if any.
Use this only for a single render/compute pass, otherwise results will be overwritten.
Only ever returns Some for queries that were created using GpuProfiler::begin_pass_query.
Sourcepub fn with_parent(self, parent: Option<&GpuProfilerQuery>) -> Self
pub fn with_parent(self, parent: Option<&GpuProfilerQuery>) -> Self
Makes this scope a child of the passed scope.