gpu-dawn: expose dawn::native::Adapter->Get as C shim
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
13de9d6a8c
commit
354df53523
2 changed files with 5 additions and 0 deletions
|
|
@ -61,6 +61,10 @@ MACH_EXPORT MachDawnNativeAdapterProperties machDawnNativeAdapter_getProperties(
|
|||
self->GetProperties(cppProperties);
|
||||
return reinterpret_cast<MachDawnNativeAdapterProperties>(cppProperties);
|
||||
}
|
||||
MACH_EXPORT WGPUAdapter machDawnNativeAdapter_get(MachDawnNativeAdapter adapter) {
|
||||
return reinterpret_cast<dawn_native::Adapter*>(adapter)->Get();
|
||||
}
|
||||
|
||||
// TODO(dawn-native-mach):
|
||||
// std::vector<const char*> GetSupportedExtensions() const;
|
||||
// WGPUDeviceProperties GetAdapterProperties() const;
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ MACH_EXPORT WGPUBackendType machDawnNativeAdapterProperties_getBackendType(MachD
|
|||
// underlying adapter.
|
||||
typedef struct MachDawnNativeAdapterImpl* MachDawnNativeAdapter;
|
||||
|
||||
MACH_EXPORT WGPUAdapter machDawnNativeAdapter_get(MachDawnNativeAdapter adapter);
|
||||
MACH_EXPORT MachDawnNativeAdapterProperties machDawnNativeAdapter_getProperties(MachDawnNativeAdapter adapter);
|
||||
|
||||
// An optional parameter of Adapter::CreateDevice() to send additional information when creating
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue