mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-11 06:27:54 +00:00
Remove deprecated DawnNative Adapter getters.
Bug: dawn:824 Change-Id: I4e73598ccd8eb5ce85c8a0ed86629daef4b575c6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/75584 Reviewed-by: Brandon Jones <bajones@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
98b6b73ac0
commit
f07477a1ce
@@ -33,31 +33,6 @@ namespace wgpu {
|
||||
|
||||
namespace dawn_native {
|
||||
|
||||
// DEPRECATED: use WGPUAdapterProperties instead.
|
||||
struct PCIInfo {
|
||||
uint32_t deviceId = 0;
|
||||
uint32_t vendorId = 0;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
// DEPRECATED: use WGPUBackendType instead.
|
||||
enum class BackendType {
|
||||
D3D12,
|
||||
Metal,
|
||||
Null,
|
||||
OpenGL,
|
||||
OpenGLES,
|
||||
Vulkan,
|
||||
};
|
||||
|
||||
// DEPRECATED: use WGPUAdapterType instead.
|
||||
enum class DeviceType {
|
||||
DiscreteGPU,
|
||||
IntegratedGPU,
|
||||
CPU,
|
||||
Unknown,
|
||||
};
|
||||
|
||||
class InstanceBase;
|
||||
class AdapterBase;
|
||||
|
||||
@@ -100,11 +75,6 @@ namespace dawn_native {
|
||||
Adapter(const Adapter& other);
|
||||
Adapter& operator=(const Adapter& other);
|
||||
|
||||
// DEPRECATED: use GetProperties instead.
|
||||
BackendType GetBackendType() const;
|
||||
DeviceType GetDeviceType() const;
|
||||
const PCIInfo& GetPCIInfo() const;
|
||||
|
||||
// Essentially webgpu.h's wgpuAdapterGetProperties while we don't have WGPUAdapter in
|
||||
// dawn.json
|
||||
void GetProperties(wgpu::AdapterProperties* properties) const;
|
||||
|
||||
Reference in New Issue
Block a user