Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

IDXGIDevice interface

An IDXGIDevice interface implements a derived class for DXGI objects that produce image data.

Members

The IDXGIDevice interface inherits from IDXGIObject. IDXGIDevice also has these types of members:

Methods

The IDXGIDevice interface has these methods.

MethodDescription
CreateSurface

Returns a surface. This method is used internally and you should not call it directly in your application.

GetAdapter

Returns the adapter for the specified device.

GetGPUThreadPriority

Gets the GPU thread priority.

QueryResourceResidency

Gets the residency status of an array of resources.

SetGPUThreadPriority

Sets the GPU thread priority.

 

Remarks

The IDXGIDevice interface is designed for use by DXGI objects that need access to other DXGI objects. This interface is useful to applications that do not use Direct3D to communicate with DXGI.

The Direct3D create device functions return a Direct3D device object. This Direct3D device object implements the IUnknown interface. You can query this Direct3D device object for the device's corresponding IDXGIDevice interface. To retrieve the IDXGIDevice interface of a Direct3D device, use the following code:


IDXGIDevice * pDXGIDevice;
hr = g_pd3dDevice->QueryInterface(__uuidof(IDXGIDevice), (void **)&pDXGIDevice);


Windows Phone 8: This API is supported.

Requirements

Header

DXGI.h

Library

DXGI.lib

See also

DXGI Interfaces

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.