/*
 * Copyright (C) 2020 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#pragma once
#include "core/helpers/non_copyable_or_moveable.h"
#include "core/os_interface/windows/windows_wrapper.h"

#include <d3dkmthk.h>

#include <memory>

namespace NEO {
class Gdi;
class HwDeviceId : NonCopyableClass {
  public:
    HwDeviceId(D3DKMT_HANDLE adapterIn, LUID adapterLuidIn, std::unique_ptr<Gdi> gdiIn);
    inline Gdi *getGdi() const {
        return gdi.get();
    }
    constexpr D3DKMT_HANDLE getAdapter() const {
        return adapter;
    }
    constexpr LUID getAdapterLuid() const {
        return adapterLuid;
    }
    ~HwDeviceId();

  protected:
    const D3DKMT_HANDLE adapter;
    const LUID adapterLuid;
    const std::unique_ptr<Gdi> gdi;
};
} // namespace NEO
