mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 17:44:09 +01:00
First bits of the API with extern C functions
This commit is contained in:
1 parent
0597949ff5
commit
53aabad8b4
7 files changed
+283
No files matched your search
@@ -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,
|
||||
}
|
||||
Reference in new issue
Block a user