Devices (Direct3D 11 Graphics)
A Direct3D device allocates and destroys objects, renders primitives, and communicates with a graphics driver and the hardware. In Direct3D 11, a device is separated into a device object for creating resources and a device-context object, which performs rendering. This section describes Direct3D 11 device and device-context objects.
Objects created from one device cannot be used directly with other devices. Use a shared resource to share data between multiple devices, with the constraint that a shared object can be used only by the device that created it.
Direct3D設(shè)備分配和銷毀對(duì)象,渲染基元,并與圖形驅(qū)動(dòng)程序和硬件通信。在Direct3D 11中,設(shè)備被分離為用于創(chuàng)建資源的設(shè)備對(duì)象和執(zhí)行渲染的設(shè)備上下文對(duì)象。本節(jié)介紹Direct3D11設(shè)備和設(shè)備上下文對(duì)象。
從一個(gè)設(shè)備創(chuàng)建的對(duì)象不能直接與其他設(shè)備一起使用。使用共享資源在多個(gè)設(shè)備之間共享數(shù)據(jù),但有一個(gè)約束,即共享對(duì)象只能由創(chuàng)建它的設(shè)備使用。