Skip to content

Commit

Permalink
fixup! Expose the counters in wgpu-core.
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed May 22, 2024
1 parent a491a5e commit 436f5e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7346,6 +7346,7 @@ impl std::fmt::Debug for InternalCounter {
#[derive(Clone, Default)]
pub struct HalCounters {
// API objects

#[allow(clippy::empty_docs)]
pub buffers: InternalCounter,
#[allow(clippy::empty_docs)]
Expand Down Expand Up @@ -7374,6 +7375,7 @@ pub struct HalCounters {
pub fences: InternalCounter,

// Resources

/// Amount of allocated gpu memory attributed to buffers, in bytes.
pub buffer_memory: InternalCounter,
/// Amount of allocated gpu memory attributed to textures, in bytes.
Expand Down

0 comments on commit 436f5e1

Please sign in to comment.