pub struct GpuQueue {
pub fence_value: u64,
pub total_draw_calls: usize,
pub total_triangles_drawn: usize,
pub total_bytes_uploaded: usize,
pub submitted_passes: usize,
}Expand description
Hardware GPU command queue managing submission, fences, and execution metrics.
Fields§
§fence_value: u64§total_draw_calls: usize§total_triangles_drawn: usize§total_bytes_uploaded: usize§submitted_passes: usizeImplementations§
Source§impl GpuQueue
impl GpuQueue
pub fn new() -> Self
Sourcepub fn submit(
&mut self,
encoder: &GpuCommandEncoder,
color_texture: &mut GpuTextureHandle,
depth_texture: Option<&mut GpuTextureHandle>,
)
pub fn submit( &mut self, encoder: &GpuCommandEncoder, color_texture: &mut GpuTextureHandle, depth_texture: Option<&mut GpuTextureHandle>, )
Submits recorded commands to the hardware queue and updates frame textures.
Trait Implementations§
Auto Trait Implementations§
impl Forget for GpuQueue
impl Freeze for GpuQueue
impl Move for GpuQueue
impl RefUnwindSafe for GpuQueue
impl Send for GpuQueue
impl Sync for GpuQueue
impl Unpin for GpuQueue
impl UnsafeUnpin for GpuQueue
impl UnwindSafe for GpuQueue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more