choose first adapter (#251)
Related to hexops/mach#216 Co-authored-by: d3m1gd <mach+d3m1gd@users.noreply.github.com>
This commit is contained in:
parent
c535e041bd
commit
ce1aeafa84
1 changed files with 1 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ pub fn App(comptime Context: type, comptime config: AppConfig) type {
|
|||
const found_backend_type = @intToEnum(gpu.Adapter.BackendType, c.machDawnNativeAdapterProperties_getBackendType(properties));
|
||||
if (found_backend_type == backend_type) {
|
||||
dawn_adapter = adapter;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (dawn_adapter == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue