mirror of
https://github.com/lisk77/comet.git
synced 2025-12-12 17:18:50 +00:00
Compare commits
No commits in common. "bf7f0bebe9c8fc16f6b567b05b5a53b8b119defe" and "4915cbcbfe10026a129814a998f48409decef661" have entirely different histories.
bf7f0bebe9
...
4915cbcbfe
3 changed files with 1 additions and 73 deletions
|
|
@ -18,7 +18,6 @@ pollster = "0.3"
|
|||
winit_input_helper = "0.16.0"
|
||||
crossbeam-channel = "0.5.14"
|
||||
chrono = "0.4.40"
|
||||
wgpu = "22.0"
|
||||
|
||||
[dependencies.image]
|
||||
version = "0.24"
|
||||
|
|
|
|||
|
|
@ -387,19 +387,7 @@ impl App {
|
|||
window.request_redraw();
|
||||
match renderer.render() {
|
||||
Ok(_) => {}
|
||||
Err(
|
||||
wgpu::SurfaceError::Lost | wgpu::SurfaceError::Outdated,
|
||||
) => {
|
||||
let size = renderer.size();
|
||||
renderer.resize(size);
|
||||
}
|
||||
Err(wgpu::SurfaceError::OutOfMemory) => {
|
||||
error!("Out of memory!");
|
||||
elwt.exit();
|
||||
}
|
||||
Err(wgpu::SurfaceError::Timeout) => {
|
||||
warn!("Surface timeout - skipping frame");
|
||||
}
|
||||
Err(e) => error!("Error rendering: {}", e),
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
|
|
|||
|
|
@ -149,17 +149,6 @@ impl Mul<v2> for f32 {
|
|||
}
|
||||
}
|
||||
|
||||
impl Mul<v2> for v2 {
|
||||
type Output = v2;
|
||||
|
||||
fn mul(self, other: v2) -> v2 {
|
||||
v2 {
|
||||
x: self.x * other.x,
|
||||
y: self.y * other.y,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Div<f32> for v2 {
|
||||
type Output = v2;
|
||||
|
||||
|
|
@ -399,17 +388,6 @@ impl Mul<f32> for v2i {
|
|||
}
|
||||
}
|
||||
|
||||
impl Mul<v2i> for v2i {
|
||||
type Output = v2i;
|
||||
|
||||
fn mul(self, other: v2i) -> v2i {
|
||||
v2i {
|
||||
x: self.x * other.x,
|
||||
y: self.y * other.y,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<v2i> for v2 {
|
||||
fn from(v: v2i) -> v2 {
|
||||
v2 {
|
||||
|
|
@ -606,18 +584,6 @@ impl Mul<v3> for f32 {
|
|||
}
|
||||
}
|
||||
|
||||
impl Mul<v3> for v3 {
|
||||
type Output = v3;
|
||||
|
||||
fn mul(self, other: v3) -> v3 {
|
||||
v3 {
|
||||
x: self.x * other.x,
|
||||
y: self.y * other.y,
|
||||
z: self.z * other.z,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Div<f32> for v3 {
|
||||
type Output = v3;
|
||||
|
||||
|
|
@ -831,18 +797,6 @@ impl Mul<f32> for v3i {
|
|||
}
|
||||
}
|
||||
|
||||
impl Mul<v3i> for v3i {
|
||||
type Output = v3i;
|
||||
|
||||
fn mul(self, other: v3i) -> v3i {
|
||||
v3i {
|
||||
x: self.x * other.x,
|
||||
y: self.y * other.y,
|
||||
z: self.z * other.z,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<v3i> for v3 {
|
||||
fn from(v: v3i) -> v3 {
|
||||
v3 {
|
||||
|
|
@ -1048,19 +1002,6 @@ impl Mul<v4> for f32 {
|
|||
}
|
||||
}
|
||||
|
||||
impl Mul<v4> for v4 {
|
||||
type Output = v4;
|
||||
|
||||
fn mul(self, other: v4) -> v4 {
|
||||
v4 {
|
||||
x: self.x * other.x,
|
||||
y: self.y * other.y,
|
||||
z: self.z * other.z,
|
||||
w: self.w * other.w,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl MulAssign<f32> for v4 {
|
||||
fn mul_assign(&mut self, other: f32) {
|
||||
self.x *= other;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue