gfx-rs/wgpu-native

WGPUBackendType invalid

ChenTianSky opened this issue · 0 comments

WGPURequestAdapterOptions adapterOpts = {};
adapterOpts.nextInChain = nullptr;
adapterOpts.compatibleSurface = mSurface;
adapterOpts.powerPreference = WGPUPowerPreference_HighPerformance;
adapterOpts.forceFallbackAdapter = false;
adapterOpts.backendType = WGPUBackendType_D3D12;
mAdapter = instance.requestAdapter(adapterOpts);

WGPUAdapterProperties properties = {};
wgpuAdapterGetProperties(mAdapter, &properties);

The property backendType obtained is vulkan!
Why not D3D12?