Utility struct for rendering to `Vec `
| 13 | |
| 14 | /// Utility struct for rendering to `Vec<u8>` |
| 15 | pub 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 | |
| 25 | impl std::fmt::Debug for BufferRenderer { |
| 26 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
nothing calls this directly
no outgoing calls
no test coverage detected