MCPcopy Create free account
hub / github.com/amengede/wgpu / State

Class State

07-buffer-suballocation/src/main.rs:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3use renderer_backend::{bind_group_layout, material::Material, mesh_builder, pipeline};
4
5struct State<'a> {
6 instance: wgpu::Instance,
7 surface: wgpu::Surface<'a>,
8 device: wgpu::Device,
9 queue: wgpu::Queue,
10 config: wgpu::SurfaceConfiguration,
11 size: (i32, i32),
12 window: &'a mut Window,
13 render_pipeline: wgpu::RenderPipeline,
14 triangle_mesh: wgpu::Buffer,
15 quad_mesh: mesh_builder::Mesh,
16 triangle_material: Material,
17 quad_material: Material,
18}
19
20impl<'a> State<'a> {
21

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected