mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-13 14:28:27 +00:00
Prepare for follow-on change
This commit is contained in:
parent
225e66a92e
commit
090262c7db
@ -15,7 +15,7 @@ pub struct Geometry<V> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Geometry<vertices::Vertex> {
|
impl Geometry<vertices::Vertex> {
|
||||||
pub fn vertices(device: &wgpu::Device, operation: &impl Operation) -> Self {
|
pub fn vertices(device: &wgpu::Device, operation: &dyn Operation) -> Self {
|
||||||
let mut mesh_vertices = Vec::new();
|
let mut mesh_vertices = Vec::new();
|
||||||
operation.vertices(&mut mesh_vertices);
|
operation.vertices(&mut mesh_vertices);
|
||||||
|
|
||||||
@ -51,10 +51,7 @@ impl Geometry<vertices::Vertex> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Geometry<triangles::Vertex> {
|
impl Geometry<triangles::Vertex> {
|
||||||
pub fn triangles(
|
pub fn triangles(device: &wgpu::Device, operation: &dyn Operation) -> Self {
|
||||||
device: &wgpu::Device,
|
|
||||||
operation: &impl Operation,
|
|
||||||
) -> Self {
|
|
||||||
let mut mesh_triangles = Vec::new();
|
let mut mesh_triangles = Vec::new();
|
||||||
operation.triangles(&mut mesh_triangles);
|
operation.triangles(&mut mesh_triangles);
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ impl Renderer {
|
|||||||
|
|
||||||
pub fn render(
|
pub fn render(
|
||||||
&mut self,
|
&mut self,
|
||||||
selected_operation: &impl Operation,
|
selected_operation: &dyn Operation,
|
||||||
all_operations: &OpsLog,
|
all_operations: &OpsLog,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
let vertices = Geometry::vertices(&self.device, selected_operation);
|
let vertices = Geometry::vertices(&self.device, selected_operation);
|
||||||
|
@ -65,7 +65,7 @@ impl TextRenderer {
|
|||||||
device: &wgpu::Device,
|
device: &wgpu::Device,
|
||||||
queue: &wgpu::Queue,
|
queue: &wgpu::Queue,
|
||||||
surface_config: &wgpu::SurfaceConfiguration,
|
surface_config: &wgpu::SurfaceConfiguration,
|
||||||
_selected_operation: &impl Operation,
|
_selected_operation: &dyn Operation,
|
||||||
_all_operations: &OpsLog,
|
_all_operations: &OpsLog,
|
||||||
render_pass: &mut wgpu::RenderPass,
|
render_pass: &mut wgpu::RenderPass,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
|
Loading…
Reference in New Issue
Block a user