mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
15 lines
321 B
Rust
15 lines
321 B
Rust
pub struct Bound<T> {
|
|
pub(super) bind_group: wgpu::BindGroup,
|
|
pub(super) with: T,
|
|
}
|
|
|
|
impl<T> std::ops::Deref for Bound<T> {
|
|
type Target = T;
|
|
|
|
fn deref(&self) -> &Self::Target { &self.with }
|
|
}
|
|
|
|
impl<T> std::ops::DerefMut for Bound<T> {
|
|
fn deref_mut(&mut self) -> &mut Self::Target { &mut self.with }
|
|
}
|