compute-toys/wgpu-compute-toy

FR: add timestamp queries

Opened this issue · 0 comments

The reason why it's not working because we need after .request_adapter() check existed features and request device with them.

const QUERY_FEATURES: wgpu::Features = {
    wgpu::Features::TIMESTAMP_QUERY
        .union(wgpu::Features::TIMESTAMP_QUERY_INSIDE_PASSES)
        .union(wgpu::Features::PIPELINE_STATISTICS_QUERY)
};

Also exists wgpu-profiler crate. Right now wgpu::Features::empty().