mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-23 18:36:05 +00:00
Prepare for follow-on change
This commit is contained in:
parent
50704cf18b
commit
e218666396
@ -14,7 +14,7 @@ pub struct Geometry<V> {
|
|||||||
_vertex: PhantomData<V>,
|
_vertex: PhantomData<V>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<V> Geometry<V> {
|
impl Geometry<VerticesVertex> {
|
||||||
pub fn vertices(device: &wgpu::Device, operation: &impl Operation) -> Self {
|
pub fn vertices(device: &wgpu::Device, operation: &impl Operation) -> Self {
|
||||||
let mut mesh_vertices = Vec::new();
|
let mut mesh_vertices = Vec::new();
|
||||||
operation.vertices(&mut mesh_vertices);
|
operation.vertices(&mut mesh_vertices);
|
||||||
@ -48,7 +48,9 @@ impl<V> Geometry<V> {
|
|||||||
|
|
||||||
Self::new(device, &vertices, &indices)
|
Self::new(device, &vertices, &indices)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<V> Geometry<V> {
|
||||||
pub fn triangles(
|
pub fn triangles(
|
||||||
device: &wgpu::Device,
|
device: &wgpu::Device,
|
||||||
operation: &impl Operation,
|
operation: &impl Operation,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user