Allow depth to be attached to text using metadata
This commit is contained in:
parent
74e9aa37a1
commit
c25f394c16
4 changed files with 45 additions and 8 deletions
|
@ -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,
|
||||
},
|
||||
],
|
||||
}];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue