blob: 15a10f446dc0f5e178e40bf43c275b6aec08736b [file] [log] [blame]
//
// Copyright 2024 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Device9.cpp: D3D9 implementation of egl::Device
#include "libANGLE/renderer/d3d/d3d9/Device9.h"
#include "libANGLE/Device.h"
#include "libANGLE/Display.h"
#include <EGL/eglext.h>
namespace rx
{
Device9::Device9(IDirect3DDevice9 *device) : mDevice(device) {}
Device9::~Device9() {}
egl::Error Device9::getAttribute(const egl::Display *display, EGLint attribute, void **outValue)
{
ASSERT(attribute == EGL_D3D9_DEVICE_ANGLE);
*outValue = mDevice;
return egl::NoError();
}
egl::Error Device9::initialize()
{
return egl::NoError();
}
void Device9::generateExtensions(egl::DeviceExtensions *outExtensions) const
{
outExtensions->deviceD3D = true;
outExtensions->deviceD3D9 = true;
}
} // namespace rx