MCPcopy Create free account
hub / github.com/DioxusLabs/anyrender / BufferRenderer

Class BufferRenderer

crates/wgpu_context/src/buffer_renderer.rs:15–23  ·  view source on GitHub ↗

Utility struct for rendering to `Vec `

Source from the content-addressed store, hash-verified

13
14/// Utility struct for rendering to `Vec<u8>`
15pub struct BufferRenderer {
16 // The device and queue for rendering to the surface
17 pub dev_id: usize,
18 pub device_handle: DeviceHandle,
19
20 config: BufferRendererConfig,
21 texture_view: wgpu::TextureView,
22 gpu_buffer: wgpu::Buffer,
23}
24
25impl std::fmt::Debug for BufferRenderer {
26 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected