First bits of the API with extern C functions

This commit is contained in:
Dzmitry Malyshau committed 2018-09-13 15:19:22 -04:00
1 parent 0597949ff5
commit 53aabad8b4
7 files changed
+283

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
//use hal;
#[repr(C)]
pub enum PowerPreference {
Default = 0,
LowPower = 1,
HighPerformance = 2,
}
#[repr(C)]
pub struct AdapterDescriptor {
pub power_preference: PowerPreference,
}
#[repr(C)]
pub struct Extensions {
anisotropicFiltering: bool,
}
#[repr(C)]
pub struct DeviceDescriptor {
pub extension: Extensions,
}