Allow depth to be attached to text using metadata

This commit is contained in:
grovesNL 2023-02-14 14:44:09 -03:30 committed by Josh Groves
parent 74e9aa37a1
commit c25f394c16
4 changed files with 45 additions and 8 deletions

View file

@ -151,6 +151,11 @@ impl TextAtlas {
offset: size_of::<u32>() as u64 * 5,
shader_location: 4,
},
wgpu::VertexAttribute {
format: VertexFormat::Float32,
offset: size_of::<u32>() as u64 * 6,
shader_location: 5,
},
],
}];