diff --git a/crates/metal2vulkan-conformance/src/cost.rs b/crates/metal2vulkan-conformance/src/cost.rs index 0c6b317a2..7f20d4247 100644 --- a/crates/metal2vulkan-conformance/src/cost.rs +++ b/crates/metal2vulkan-conformance/src/cost.rs @@ -74,17 +74,26 @@ const NOT_SUBTRACTABLE: [(&str, &str); 3] = [ ("_nanos", "an accumulated time, which no count gate holds"), ]; -/// A prefix of the fields that count the device's own checks of its submissions (the runtime's -/// `submit_check.rs`), with why the cost half does not read them. The checks run once per driver, -/// release, kernel and runtime, on a thread of their own, as the first device of a run with no -/// stored verdict is made, so inside whichever case met that device: seen on the M3 Max in a -/// fresh workspace, `pass-bytes-srgb-decode-all-bytes` read 162 of their calls and their one run. -/// Their work is counted apart from the device's, and none of it is a case's. -const DEVICE_CHECKS: [(&str, &str); 1] = [( - "submit_check", - "the device's own submission checks' work, once per driver and release on a thread of its \ - own, counted apart from the device's: never a case's", -)]; +/// A prefix of the fields that count the device's own checks (the runtime's `submit_check.rs`, +/// `queue_switch_check.rs`, `in_place_check.rs`), with why the cost half does not read them. A +/// check runs once per driver and release with no stored verdict, on a thread of its own, as the +/// first device of a run is made or first asks, so inside whichever case met that device: seen on +/// the M3 Max in a fresh workspace, `pass-bytes-srgb-decode-all-bytes` read 162 of the submission +/// checks' calls and their one run, and their allocations among its own. Their work is counted +/// apart from the device's (`submit_check_*`, and `device_checks` for their makings, releases and +/// other submissions), and none of it is a case's. +const DEVICE_CHECKS: [(&str, &str); 2] = [ + ( + "submit_check", + "the device's own submission checks' work, once per driver and release on a thread of \ + its own, counted apart from the device's: never a case's", + ), + ( + "device_checks", + "the device's own checks' makings, releases and submissions, once per driver and release \ + on threads of their own, counted apart from the device's: never a case's", + ), +]; /// Whether `name` is a field the cost half reads, or why it is not. pub fn excluded(name: &str) -> Option<&'static str> { diff --git a/crates/metal2vulkan-conformance/src/tests.rs b/crates/metal2vulkan-conformance/src/tests.rs index a996e323d..63ea45b15 100644 --- a/crates/metal2vulkan-conformance/src/tests.rs +++ b/crates/metal2vulkan-conformance/src/tests.rs @@ -4419,6 +4419,13 @@ fn the_cost_half_reads_every_count_the_runtime_keeps() { !counts.iter().any(|(name, _)| name.contains("copy_sites")), "a site table was read as a count" ); + // Nor is the device's checks' work, which is never a case's. + assert!( + !counts + .iter() + .any(|(name, _)| name.starts_with("device_checks")), + "the device's checks' work was read as a case's" + ); assert!(crate::cost::excluded("copy_sites").is_some()); assert!(crate::cost::excluded("row_copy_regions_most").is_some()); assert!(crate::cost::excluded("batch_submit_nanos").is_some()); @@ -4427,6 +4434,8 @@ fn the_cost_half_reads_every_count_the_runtime_keeps() { "submit_check_calls", "submit_checks_run", "submit_checks_recalled", + "device_checks", + "device_checks.vk_memory_allocations", ] { assert!(crate::cost::excluded(checks).is_some(), "{checks}"); } diff --git a/crates/metal2vulkan-runtime/src/churn_counts.rs b/crates/metal2vulkan-runtime/src/churn_counts.rs index caea17eaa..3d18c65fd 100644 --- a/crates/metal2vulkan-runtime/src/churn_counts.rs +++ b/crates/metal2vulkan-runtime/src/churn_counts.rs @@ -20,6 +20,7 @@ //! planned them (a render pass's attachments, a compute dispatch's bindings, a blit), cut to a //! rectangle or of every texel, and the texels they copy. +use crate::step_aside::on_a_check_s_thread; use crate::work_counts::{CopySite, CopySites, COPY_SITES}; use std::panic::Location; use std::sync::atomic::{AtomicU64, Ordering}; @@ -37,6 +38,15 @@ static VK_MAKINGS: [AtomicU64; 6] = [const { AtomicU64::new(0) }; 6]; /// The places in the runtime that made those, the first [`COPY_SITES`] met. static MAKING_SITES: LazyLock = LazyLock::new(CopySites::default); +/// The releases of [`VK_RELEASES`]'s entry points made on a thread of a device's checks +/// (`step_aside.rs`), which it leaves out: the checks' work, never the program's +/// (`WorkCounts::device_checks`). +static CHECK_RELEASES: [AtomicU64; 4] = [const { AtomicU64::new(0) }; 4]; + +/// The makings of [`VK_MAKINGS`]'s entry points made on a thread of a device's checks, which it +/// leaves out. +static CHECK_MAKINGS: [AtomicU64; 6] = [const { AtomicU64::new(0) }; 6]; + /// An entry point [`VK_RELEASES`] counts. #[derive(Clone, Copy)] pub(crate) enum VkRelease { @@ -58,8 +68,13 @@ pub(crate) enum VkMaking { BufferBinding = 5, } -/// A release of `what` (`release::object`), called `at`. +/// A release of `what` (`release::object`), called `at`: a check's where a device's check made +/// it ([`CHECK_RELEASES`]). pub(crate) fn vk_released(what: VkRelease, at: &Location<'static>) { + if on_a_check_s_thread() { + CHECK_RELEASES[what as usize].fetch_add(1, Ordering::Relaxed); + return; + } VK_RELEASES[what as usize].fetch_add(1, Ordering::Relaxed); let command = match what { VkRelease::Image => "vkDestroyImage", @@ -70,12 +85,27 @@ pub(crate) fn vk_released(what: VkRelease, at: &Location<'static>) { RELEASE_SITES.count(command, at, 0); } -/// A making of `what` (`creation.rs`), called `at`. +/// A making of `what` (`creation.rs`), called `at`: a check's where a device's check made it +/// ([`CHECK_MAKINGS`]). pub(crate) fn vk_made(what: VkMaking, at: &Location<'static>) { + if on_a_check_s_thread() { + CHECK_MAKINGS[what as usize].fetch_add(1, Ordering::Relaxed); + return; + } VK_MAKINGS[what as usize].fetch_add(1, Ordering::Relaxed); MAKING_SITES.count(what.command(), at, 0); } +/// The process's devices' checks' makings of `what` so far. +pub(crate) fn checks_made(what: VkMaking) -> u64 { + CHECK_MAKINGS[what as usize].load(Ordering::Relaxed) +} + +/// The process's devices' checks' releases of `what` so far. +pub(crate) fn checks_released(what: VkRelease) -> u64 { + CHECK_RELEASES[what as usize].load(Ordering::Relaxed) +} + impl VkMaking { /// Its Vulkan entry point. fn command(self) -> &'static str { @@ -343,3 +373,35 @@ pub struct ShadowKeeps { /// Their texels. pub blit_whole_texels: u64, } + +#[cfg(test)] +mod tests { + use super::*; + + /// A device check's makings and releases, on its thread, are counted as the checks' alone, so + /// the process's counts (`ObjectChurn`), which a program's or a case's cost reads, carry none + /// of them. The test's own thread is marked: each test has a thread of its own. + #[test] + fn a_check_s_makings_and_releases_are_its_alone() { + let process = || { + let churn = ChurnCounters::default().snapshot().0; + (churn.vk_memory_allocations, churn.vk_memory_freed) + }; + let checks = || { + ( + checks_made(VkMaking::Memory), + checks_released(VkRelease::Memory), + ) + }; + let (before, before_checks) = (process(), checks()); + crate::step_aside::mark_a_check_s_thread(); + vk_made(VkMaking::Memory, Location::caller()); + vk_released(VkRelease::Memory, Location::caller()); + assert_eq!( + process(), + before, + "the process's counts took a check's work" + ); + assert_eq!(checks(), (before_checks.0 + 1, before_checks.1 + 1)); + } +} diff --git a/crates/metal2vulkan-runtime/src/in_place_check.rs b/crates/metal2vulkan-runtime/src/in_place_check.rs index 56df1464e..7cee99b3a 100644 --- a/crates/metal2vulkan-runtime/src/in_place_check.rs +++ b/crates/metal2vulkan-runtime/src/in_place_check.rs @@ -76,7 +76,8 @@ //! allocations and frees on other threads (`step_aside.rs`): it goes on once none is in //! progress and none ended for `step_aside::QUIET`, at once while a call waits for its verdicts //! (`Device::settle_in_place_checks`). Its own buffers and textures, made through the product's -//! paths on its thread, count for nothing there. +//! paths on its thread, count for nothing there, and their allocations, releases and +//! submissions on its thread are counted as the checks' (`WorkCounts::device_checks`). //! - **Its thread.** Each round's Vulkan work (the buffer, the texture, the submission and its //! wait, the releases) runs inside a section of the exit guard (`exit_guard.rs`), as every //! runtime thread's does. It holds its device through the registry of the runtime's own holds diff --git a/crates/metal2vulkan-runtime/src/lib.rs b/crates/metal2vulkan-runtime/src/lib.rs index 49d5d782e..2a162ffba 100644 --- a/crates/metal2vulkan-runtime/src/lib.rs +++ b/crates/metal2vulkan-runtime/src/lib.rs @@ -381,6 +381,6 @@ pub use values::{ pub use view_plan::ViewProblem; pub use visibility::{VisibilityProblem, VisibilityResultMode, VisibilityResultType}; pub use warm::{PipelineRecord, WarmStatistics}; -pub use work_counts::{CopySite, MemoryFrees, WorkCounts}; +pub use work_counts::{CopySite, DeviceCheckWork, MemoryFrees, WorkCounts}; pub use wrapped_buffer::{VkBufferMemory, WrappedBufferProblem}; pub use ycbcr::{IoSurfaceYCbCr, SurfaceYCbCrMatrix}; diff --git a/crates/metal2vulkan-runtime/src/queue_switch_check.rs b/crates/metal2vulkan-runtime/src/queue_switch_check.rs index f9f8b3464..146766fc6 100644 --- a/crates/metal2vulkan-runtime/src/queue_switch_check.rs +++ b/crates/metal2vulkan-runtime/src/queue_switch_check.rs @@ -34,7 +34,8 @@ //! - **Out of the device's way.** Before each round the thread steps aside for the device's //! allocations and frees on other threads (`step_aside.rs`): it goes on once none is in //! progress and none ended for `step_aside::QUIET`, at once while a call waits for its verdict -//! (`Device::settle_queue_switch_check`). +//! (`Device::settle_queue_switch_check`). Its submissions are counted as the checks' +//! (`WorkCounts::device_checks`), not among the device's (`queue_submissions`). //! - **Its thread.** Each reach of the device runs inside a section of the exit guard //! (`exit_guard.rs`), as every runtime thread's does: the objects' making, the submissions, each //! wait of at most [`WAIT_SLICE`], and the releases. Once the process is exiting it ends, diff --git a/crates/metal2vulkan-runtime/src/step_aside.rs b/crates/metal2vulkan-runtime/src/step_aside.rs index b5a2e40d5..e62d19a39 100644 --- a/crates/metal2vulkan-runtime/src/step_aside.rs +++ b/crates/metal2vulkan-runtime/src/step_aside.rs @@ -24,7 +24,10 @@ //! own run alone. //! - **What it costs.** A check's verdicts come later while the device's work goes on: until then //! the device takes the forms a device without them takes (each check's module docs). Counted: -//! `WorkCounts::check_steps_aside`, `check_aside_nanos`. +//! `WorkCounts::device_checks` (`steps_aside`, `aside_nanos`). +//! - **The checks' work is theirs.** A check's thread's makings, releases and submissions are +//! counted among its checks' (`WorkCounts::device_checks`), never the program's, so a program +//! or a case that meets a device first does not carry them. use std::cell::Cell; use std::sync::atomic::{AtomicU32, AtomicU64, Ordering}; @@ -49,8 +52,9 @@ pub(crate) fn mark_a_check_s_thread() { CHECKS.with(|checks| checks.set(true)); } -/// Whether this thread is a check's ([`mark_a_check_s_thread`]). -fn on_a_check_s_thread() -> bool { +/// Whether this thread is a check's ([`mark_a_check_s_thread`]): its makings, releases and +/// submissions are counted as the checks' (`WorkCounts::device_checks`). +pub(crate) fn on_a_check_s_thread() -> bool { CHECKS.with(Cell::get) } diff --git a/crates/metal2vulkan-runtime/src/submit_check.rs b/crates/metal2vulkan-runtime/src/submit_check.rs index 70e8cf475..4a2f0a7b9 100644 --- a/crates/metal2vulkan-runtime/src/submit_check.rs +++ b/crates/metal2vulkan-runtime/src/submit_check.rs @@ -111,8 +111,10 @@ //! (`WorkCounts::submit_check_calls`), not among the device's, with the relay's mark after each //! of its uses of the queue where the device relays its queues' failures (`device/relay.rs`, //! `By::Checks`); the commands it records go through the driver's own entry points, counted -//! among none of the device's (`WorkCounts::commands_recorded`, `recorder::unrouted`). Its -//! submission calls hold the device's loader word (`loader_word.rs`). +//! among none of the device's (`WorkCounts::commands_recorded`, `recorder::unrouted`); its +//! allocations, buffers, bindings and releases are counted as the checks' +//! (`WorkCounts::device_checks`), not among the process's (`object_churn`). Its submission calls +//! hold the device's loader word (`loader_word.rs`). use crate::allocations::Allocations; use crate::command_buffer::fences::Fences; diff --git a/crates/metal2vulkan-runtime/src/tests/host_ram_window_bench.rs b/crates/metal2vulkan-runtime/src/tests/host_ram_window_bench.rs index af45b87bd..91c5f345d 100644 --- a/crates/metal2vulkan-runtime/src/tests/host_ram_window_bench.rs +++ b/crates/metal2vulkan-runtime/src/tests/host_ram_window_bench.rs @@ -447,20 +447,25 @@ fn pipeline_work(from: &crate::WorkCounts, to: &crate::WorkCounts) -> String { } /// Which of `device`'s checks ran in this process and which it read from a record, from its -/// counts `to` (`WorkCounts`), how often and how long their steps stepped aside for its other -/// work (`step_aside.rs`), and its submission checks' report. +/// counts `to` (`WorkCounts`), the process's checks' allocations and frees, how often and how +/// long their steps stepped aside for its other work (`step_aside.rs`), and its submission +/// checks' report. fn checks_line(device: &Device, to: &crate::WorkCounts) -> String { + let checks = &to.device_checks; format!( "submission checks run {} recalled {}, queue-switch checks run {} recalled {}, in-place \ - checks run {} recalled {}, their steps aside {} for {:.1} ms; {}", + checks run {} recalled {}, their allocations {} frees {}, their steps aside {} for \ + {:.1} ms; {}", to.submit_checks_run, to.submit_checks_recalled, to.queue_switch_checks_run, to.queue_switch_checks_recalled, to.in_place_checks_run, to.in_place_checks_recalled, - to.check_steps_aside, - to.check_aside_nanos as f64 / 1e6, + checks.vk_memory_allocations, + checks.vk_memory_freed, + checks.steps_aside, + checks.aside_nanos as f64 / 1e6, device.submit_check_report(), ) } diff --git a/crates/metal2vulkan-runtime/src/tests/submit_check_device.rs b/crates/metal2vulkan-runtime/src/tests/submit_check_device.rs index dc79f9ffd..7200e817f 100644 --- a/crates/metal2vulkan-runtime/src/tests/submit_check_device.rs +++ b/crates/metal2vulkan-runtime/src/tests/submit_check_device.rs @@ -5,7 +5,8 @@ //! - **They answer.** A device made over a fresh shader cache runs its checks once //! (`WorkCounts::submit_checks_run`), each verdict an answer (never pending once settled; the //! follows check answered on Linux where the device imports host pointers), their calls counted -//! apart (`WorkCounts::submit_check_calls`) and their commands among none of the device's +//! apart (`WorkCounts::submit_check_calls`), their allocations too (`device_checks`), and their +//! commands among none of the device's //! (`commands_recorded`: a device that ran them recorded the copies one that recalled them did, //! the follows check's three among neither); a later device over the same cache recalls them //! (`submit_checks_recalled`), runs none, and holds the verdicts of the last device that ran @@ -101,6 +102,10 @@ fn the_checks_answer_once_and_a_second_device_recalls_them() { counts.submit_check_calls > 0, "the checks' calls were not counted" ); + assert!( + counts.device_checks.vk_memory_allocations > 0, + "the checks' allocations were not counted apart" + ); // A live device with equal options is what `system_default_with` returns again: the first // goes before the second is made, its cache thread writing what it queued (the record among // it) as it goes, so the second is a new device over the same directory, as a later diff --git a/crates/metal2vulkan-runtime/src/work_counts.rs b/crates/metal2vulkan-runtime/src/work_counts.rs index cb04f3713..bbf326d30 100644 --- a/crates/metal2vulkan-runtime/src/work_counts.rs +++ b/crates/metal2vulkan-runtime/src/work_counts.rs @@ -6,6 +6,7 @@ //! holds to none. Not part of the API. use super::buffer::{KeptBecause, ReadApart}; +use super::churn_counts::{VkMaking, VkRelease}; use super::command_buffer::GroupEnd; use super::degradation::Degradation; use super::device::lock; @@ -234,6 +235,7 @@ pub(crate) struct Counters { submit_check_calls: AtomicU64, check_steps_aside: AtomicU64, check_aside_nanos: AtomicU64, + check_queue_submissions: AtomicU64, queue_sharing_untimed: AtomicU64, slot_wait_nanos: AtomicU64, completed_waits: AtomicU64, @@ -1906,7 +1908,13 @@ impl Counters { /// A `vkQueueSubmit` or `vkQueueBindSparse` call was made with `infos` `VkSubmitInfo`s /// (none for a sparse bind) and `command_buffers` `VkCommandBuffer`s among them. + /// Made on a thread of the device's checks (`step_aside.rs`), it is the checks' work and + /// counted as theirs alone ([`DeviceCheckWork::queue_submissions`]). pub(crate) fn queue_submitted(&self, infos: usize, command_buffers: usize) { + if crate::step_aside::on_a_check_s_thread() { + self.check_queue_submissions.fetch_add(1, Ordering::Relaxed); + return; + } self.queue_submissions.fetch_add(1, Ordering::Relaxed); self.submit_infos.fetch_add(infos as u64, Ordering::Relaxed); (self.command_buffers_submitted).fetch_add(command_buffers as u64, Ordering::Relaxed); @@ -3750,10 +3758,57 @@ pub struct MemoryFrees { /// no block of the allocator's is freed without naming one, and so `blocks` stays its whole /// share of `vk_memory_freed` over the device's whole life. pub teardown: u64, - /// The blocks counted above: the allocator's whole share of `vk_memory_freed`. + /// The blocks counted above: the allocator's whole share of `vk_memory_freed` and of the + /// device's checks' (`DeviceCheckWork::vk_memory_freed`). pub blocks: u64, } +/// The Vulkan work of the device's own checks (its submission, queue-switch and in-place checks: +/// `submit_check.rs`, `queue_switch_check.rs`, `in_place_check.rs`), made on their threads +/// (`step_aside.rs`) and counted here alone: the makings and releases of the whole process's +/// checks, as `ObjectChurn`'s are the whole process's, and the device's checks' submissions. A +/// check runs once per driver and release with no record of its verdicts, beside whatever the +/// program does then, so none of this is the program's. A field of `WorkCounts`, for the lanes: +/// no Metal counterpart, not part of the API. +/// +/// The in-place check makes its buffers, textures and command buffers through the program's +/// paths, which count them as they count the program's (`buffers_made`, `commands_recorded` and +/// the like); its `vkAllocateMemory`, release and submission calls on its thread are here, and a +/// free the device's free thread makes for it is the device's. +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] +pub struct DeviceCheckWork { + /// `vkAllocateMemory` calls (`ObjectChurn::vk_memory_allocations` leaves them out). + pub vk_memory_allocations: u64, + /// `vkFreeMemory` calls (`ObjectChurn::vk_memory_freed` leaves them out). + pub vk_memory_freed: u64, + /// `vkCreateBuffer` calls. + pub vk_buffers_made: u64, + /// `vkDestroyBuffer` calls. + pub vk_buffers_destroyed: u64, + /// `vkCreateImage` calls. + pub vk_images_made: u64, + /// `vkDestroyImage` calls. + pub vk_images_destroyed: u64, + /// `vkCreateImageView` calls. + pub vk_image_views_made: u64, + /// `vkDestroyBufferView` calls. + pub vk_buffer_views_destroyed: u64, + /// `vkBindImageMemory` calls. + pub vk_image_bindings: u64, + /// `vkBindBufferMemory` calls. + pub vk_buffer_bindings: u64, + /// `vkQueueSubmit` and `vkQueueBindSparse` calls the device's queue-switch and in-place + /// checks made, and the relay's marks after their uses of a queue + /// (`WorkCounts::queue_submissions` leaves them out); the submission checks' are + /// `WorkCounts::submit_check_calls`. + pub queue_submissions: u64, + /// Steps of the device's checks that waited for the device's allocations and frees on other + /// threads before they went on (`step_aside.rs`). + pub steps_aside: u64, + /// The nanoseconds those steps waited, in all. + pub aside_nanos: u64, +} + /// What a device's commit path did so far (`Device::work_counts`), for the lanes: not part of the /// API. #[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] @@ -4886,12 +4941,9 @@ pub struct WorkCounts { /// theirs, and on a device that relays its queues' failures the relay's mark after each of /// their uses of a queue. pub submit_check_calls: u64, - /// Steps of the device's checks (its submission, queue-switch and in-place checks) that - /// waited for the device's allocations and frees on other threads before they went on - /// (`step_aside.rs`). - pub check_steps_aside: u64, - /// The nanoseconds those steps waited, in all. - pub check_aside_nanos: u64, + /// The device's own checks' work, on their threads, which the counts above and + /// `object_churn` leave out (`DeviceCheckWork`). + pub device_checks: DeviceCheckWork, /// Devices of `QueueSharingPolicy::Adaptive` with two `VkQueue`s of one family to share that /// do not share, because their command buffers write no calibrated GPU timestamps the host /// reads (`gpu_times_from_host`, a driver whose timestamps wait for every queue's, or none): @@ -6913,8 +6965,25 @@ impl Device { submit_checks_run: counters.submit_checks_run.load(Ordering::Relaxed), submit_checks_recalled: counters.submit_checks_recalled.load(Ordering::Relaxed), submit_check_calls: counters.submit_check_calls.load(Ordering::Relaxed), - check_steps_aside: counters.check_steps_aside.load(Ordering::Relaxed), - check_aside_nanos: counters.check_aside_nanos.load(Ordering::Relaxed), + device_checks: { + let made = super::churn_counts::checks_made; + let released = super::churn_counts::checks_released; + DeviceCheckWork { + vk_memory_allocations: made(VkMaking::Memory), + vk_memory_freed: released(VkRelease::Memory), + vk_buffers_made: made(VkMaking::Buffer), + vk_buffers_destroyed: released(VkRelease::Buffer), + vk_images_made: made(VkMaking::Image), + vk_images_destroyed: released(VkRelease::Image), + vk_image_views_made: made(VkMaking::ImageView), + vk_buffer_views_destroyed: released(VkRelease::BufferView), + vk_image_bindings: made(VkMaking::ImageBinding), + vk_buffer_bindings: made(VkMaking::BufferBinding), + queue_submissions: counters.check_queue_submissions.load(Ordering::Relaxed), + steps_aside: counters.check_steps_aside.load(Ordering::Relaxed), + aside_nanos: counters.check_aside_nanos.load(Ordering::Relaxed), + } + }, queue_sharing_untimed: counters.queue_sharing_untimed.load(Ordering::Relaxed), completed_waits: counters.completed_waits.load(Ordering::Relaxed), event_waits_met: counters.event_waits_met.load(Ordering::Relaxed), diff --git a/crates/metal2vulkan/tests/api_signatures.tsv b/crates/metal2vulkan/tests/api_signatures.tsv index 2a7bd067b..abda645db 100644 --- a/crates/metal2vulkan/tests/api_signatures.tsv +++ b/crates/metal2vulkan/tests/api_signatures.tsv @@ -2029,6 +2029,19 @@ field metal2vulkan-runtime::DegradeNotice.misplaced pub misplaced: Option field metal2vulkan-runtime::DegradeNotice.reason pub reason: String +field metal2vulkan-runtime::DeviceCheckWork.aside_nanos pub aside_nanos: u64 +field metal2vulkan-runtime::DeviceCheckWork.queue_submissions pub queue_submissions: u64 +field metal2vulkan-runtime::DeviceCheckWork.steps_aside pub steps_aside: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_buffer_bindings pub vk_buffer_bindings: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_buffer_views_destroyed pub vk_buffer_views_destroyed: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_buffers_destroyed pub vk_buffers_destroyed: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_buffers_made pub vk_buffers_made: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_image_bindings pub vk_image_bindings: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_image_views_made pub vk_image_views_made: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_images_destroyed pub vk_images_destroyed: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_images_made pub vk_images_made: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_memory_allocations pub vk_memory_allocations: u64 +field metal2vulkan-runtime::DeviceCheckWork.vk_memory_freed pub vk_memory_freed: u64 field metal2vulkan-runtime::DeviceHandles.device pub device: &'a ash::Device field metal2vulkan-runtime::DeviceHandles.entry pub entry: &'a ash::Entry field metal2vulkan-runtime::DeviceHandles.extra_queues pub extra_queues: &'a [ExtraQueue] @@ -2612,6 +2625,7 @@ field metal2vulkan-runtime::WorkCounts.depth_attachments_moved pub depth_attachm field metal2vulkan-runtime::WorkCounts.depth_instances_held pub depth_instances_held: u64 field metal2vulkan-runtime::WorkCounts.descriptor_keys_built pub descriptor_keys_built: u64 field metal2vulkan-runtime::WorkCounts.detached_storage_reaches pub detached_storage_reaches: u64 +field metal2vulkan-runtime::WorkCounts.device_checks pub device_checks: DeviceCheckWork field metal2vulkan-runtime::WorkCounts.device_copy_textures pub device_copy_textures: u64 field metal2vulkan-runtime::WorkCounts.device_memory_allocated pub device_memory_allocated: u64 field metal2vulkan-runtime::WorkCounts.device_memory_overflows pub device_memory_overflows: u64 @@ -9604,6 +9618,7 @@ struct metal2vulkan-runtime::DebugMessage #[derive(Clone, Debug, PartialEq, Eq)] struct metal2vulkan-runtime::DegradeNotice #[derive(Clone, Debug, PartialEq, Eq)] #[non_exhaustive] pub struct DegradeNotice struct metal2vulkan-runtime::DepthStencilState #[derive(Clone)] pub struct DepthStencilState(Arc) struct metal2vulkan-runtime::Device pub struct Device(Arc, holds::Share) +struct metal2vulkan-runtime::DeviceCheckWork #[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] pub struct DeviceCheckWork struct metal2vulkan-runtime::DeviceHandles #[derive(Clone, Copy)] #[non_exhaustive] pub struct DeviceHandles<'a> struct metal2vulkan-runtime::DeviceOptions #[derive(Clone, Default)] #[non_exhaustive] pub struct DeviceOptions struct metal2vulkan-runtime::DeviceProperties #[derive(Clone, Debug, PartialEq, Eq)] #[non_exhaustive] pub struct DeviceProperties