use super::wgpu_resident_timed_dispatch_supported;
#[test]
fn resident_timed_dispatch_requires_both_timestamp_features() {
let complete =
wgpu::Features::TIMESTAMP_QUERY | wgpu::Features::TIMESTAMP_QUERY_INSIDE_ENCODERS;
assert!(wgpu_resident_timed_dispatch_supported(complete));
}
#[test]
fn resident_timed_dispatch_rejects_adapters_without_timestamp_queries() {
assert!(!wgpu_resident_timed_dispatch_supported(
wgpu::Features::empty()
));
assert!(!wgpu_resident_timed_dispatch_supported(
wgpu::Features::TIMESTAMP_QUERY_INSIDE_ENCODERS
));
}
#[test]
fn resident_timed_dispatch_rejects_partial_timestamp_support() {
assert!(!wgpu_resident_timed_dispatch_supported(
wgpu::Features::TIMESTAMP_QUERY
));
}