change method name
This commit is contained in:
parent
b957414143
commit
5d81d0acfe
|
@ -34,7 +34,7 @@ impl Transform {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_matrix(&self) -> glam::Mat4 {
|
||||
pub fn matrix(&self) -> glam::Mat4 {
|
||||
self.matrix
|
||||
}
|
||||
|
||||
|
|
|
@ -408,7 +408,7 @@ impl Renderer for BasicRenderer {
|
|||
}
|
||||
|
||||
// Update transform buffer, and bind to the bind group
|
||||
self.queue.write_buffer(&self.transform_buffer, 0, bytemuck::cast_slice(&[job.transform().get_matrix()]));
|
||||
self.queue.write_buffer(&self.transform_buffer, 0, bytemuck::cast_slice(&[job.transform().matrix()]));
|
||||
render_pass.set_bind_group(1, &self.transform_bind_group, &[]);
|
||||
|
||||
// There will always be a camera (hopefully)
|
||||
|
|
Loading…
Reference in New Issue