Skip to main content

Module gpu_timer

Module gpu_timer 

Source
Expand description

wgpu rejects MAP_READ | QUERY_RESOLVE on one buffer and locks a whole buffer while any slice is mapped, so the resolve buffer copies into a map buffer.

Structsยง

SectionTimer
Sixteen sections per frame; a result arrives a frame late, and a frame whose map is still in flight measures nothing.