Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.

Commit 3fbbaee

Browse files
committed
Remove Temp
1 parent 974054a commit 3fbbaee

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/lib.rs

-23
Original file line numberDiff line numberDiff line change
@@ -74,27 +74,6 @@ pub use wgc::instance::{
7474
DeviceType,
7575
};
7676

77-
//TODO: avoid heap allocating vectors during resource creation.
78-
#[derive(Default, Debug)]
79-
struct Temp {
80-
//bind_group_descriptors: Vec<wgn::BindGroupDescriptor>,
81-
//vertex_buffers: Vec<wgn::VertexBufferDescriptor>,
82-
}
83-
84-
impl PartialEq for Temp {
85-
fn eq(&self, _other: &Self) -> bool {
86-
/*ignore */ true
87-
}
88-
}
89-
90-
impl Eq for Temp {}
91-
92-
impl std::hash::Hash for Temp {
93-
fn hash<H: std::hash::Hasher>(&self, _state: &mut H) {
94-
/* ignore */
95-
}
96-
}
97-
9877
/// A handle to a physical graphics and/or compute device.
9978
///
10079
/// An `Adapter` can be used to open a connection to the corresponding device on the host system,
@@ -120,7 +99,6 @@ pub struct RequestAdapterOptions<'a> {
12099
#[derive(Debug, PartialEq, Eq)]
121100
pub struct Device {
122101
id: wgc::id::DeviceId,
123-
temp: Temp,
124102
}
125103

126104
/// This is passed to `Device::poll` to control whether
@@ -668,7 +646,6 @@ impl Adapter {
668646
pub async fn request_device(&self, desc: &DeviceDescriptor) -> (Device, Queue) {
669647
let device = Device {
670648
id: wgn::wgpu_adapter_request_device(self.id, Some(desc)),
671-
temp: Temp::default(),
672649
};
673650
let queue = Queue {
674651
id: wgn::wgpu_device_get_default_queue(device.id),

0 commit comments

Comments
 (0)