| 269 | fn byte_len(&self) -> usize { |
| 270 | self.data.len() |
| 271 | } |
| 272 | |
| 273 | fn is_empty(&self) -> bool { |
| 274 | self.data.is_empty() |
| 275 | } |
| 276 | |
| 277 | fn as_slice(&self) -> &[u8] { |
| 278 | &self.data |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | pub struct PlotRenderer { |
| 283 | format: TextureFormat, |
| 284 | camera_buffer: Buffer, |
| 285 | camera_bind_group: BindGroup, |
| 286 | camera_bgl: BindGroupLayout, |
| 287 | composite_bgl: BindGroupLayout, |
| 288 | composite_sampler: Sampler, |
| 289 | msaa_targets: Option<MsaaTargets>, |
| 290 | // Caches |
| 291 | pipelines: PipelineCache, |
| 292 | buffers: BufferCache, |
| 293 | versions: VersionTracker, |
nothing calls this directly
no outgoing calls
no test coverage detected