mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
Minor doc fixes - plural/singular wrong, wrong word for compute/renderpass (#5431)
* Fix incorrect doc links to Render/ComputePass"Encoder" * fix doc typo: `resolve_query_set` instead of `resolve_query_sets`
This commit is contained in:
parent
6b996dd9c7
commit
e102e59e47
@ -337,7 +337,7 @@ bitflags::bitflags! {
|
||||
/// For arbitrary timestamp write commands on encoders refer to [`Features::TIMESTAMP_QUERY_INSIDE_ENCODERS`].
|
||||
/// For arbitrary timestamp write commands on passes refer to [`Features::TIMESTAMP_QUERY_INSIDE_PASSES`].
|
||||
///
|
||||
/// They must be resolved using [`CommandEncoder::resolve_query_sets`] into a buffer,
|
||||
/// They must be resolved using [`CommandEncoder::resolve_query_set`] into a buffer,
|
||||
/// then the result must be multiplied by the timestamp period [`Queue::get_timestamp_period`]
|
||||
/// to get the timestamp in nanoseconds. Multiple timestamps can then be diffed to get the
|
||||
/// time for operations between them to finish.
|
||||
@ -480,10 +480,10 @@ bitflags::bitflags! {
|
||||
// API:
|
||||
|
||||
/// Enables use of Pipeline Statistics Queries. These queries tell the count of various operations
|
||||
/// performed between the start and stop call. Call [`RenderPassEncoder::begin_pipeline_statistics_query`] to start
|
||||
/// a query, then call [`RenderPassEncoder::end_pipeline_statistics_query`] to stop one.
|
||||
/// performed between the start and stop call. Call [`RenderPass::begin_pipeline_statistics_query`] to start
|
||||
/// a query, then call [`RenderPass::end_pipeline_statistics_query`] to stop one.
|
||||
///
|
||||
/// They must be resolved using [`CommandEncoder::resolve_query_sets`] into a buffer.
|
||||
/// They must be resolved using [`CommandEncoder::resolve_query_set`] into a buffer.
|
||||
/// The rules on how these resolve into buffers are detailed in the documentation for [`PipelineStatisticsTypes`].
|
||||
///
|
||||
/// Supported Platforms:
|
||||
@ -511,8 +511,8 @@ bitflags::bitflags! {
|
||||
/// Implies [`Features::TIMESTAMP_QUERY`] & [`Features::TIMESTAMP_QUERY_INSIDE_ENCODERS`] is supported.
|
||||
///
|
||||
/// Additionally allows for timestamp queries to be used inside render & compute passes using:
|
||||
/// - [`RenderPassEncoder::write_timestamp`]
|
||||
/// - [`ComputePassEncoder::write_timestamp`]
|
||||
/// - [`RenderPass::write_timestamp`]
|
||||
/// - [`ComputePass::write_timestamp`]
|
||||
///
|
||||
/// Supported platforms:
|
||||
/// - Vulkan
|
||||
|
Loading…
Reference in New Issue
Block a user