gpu: add foundation for interface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
bf8076918b
commit
414887db2a
8 changed files with 181 additions and 64 deletions
16
gpu/src/native.zig
Normal file
16
gpu/src/native.zig
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
//! A native webgpu.h based implementation of the Device interface.
|
||||
const Device = @import("Device.zig");
|
||||
|
||||
/// Returns a native WebGPU implementation of the Device interface.
|
||||
pub fn native() Device {
|
||||
// TODO: implement Device interface
|
||||
@panic("not implemented");
|
||||
|
||||
// TODO: implement Adapter interface:
|
||||
// typedef struct WGPUAdapterImpl* WGPUAdapter;
|
||||
// // Methods of Adapter
|
||||
// WGPU_EXPORT size_t wgpuAdapterEnumerateFeatures(WGPUAdapter adapter, WGPUFeatureName * features);
|
||||
// WGPU_EXPORT bool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature);
|
||||
// WGPU_EXPORT bool wgpuAdapterGetLimits(WGPUAdapter adapter, WGPUSupportedLimits * limits);
|
||||
// WGPU_EXPORT void wgpuAdapterGetProperties(WGPUAdapter adapter, WGPUAdapterProperties * properties);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue