Raptor K on Mon, 17 Sep 2012 15:51:53

This doc said Win8 should use D3D11_RESOURCE_MISC_SHARED_NTHANDLE.

What are the advantages of the NT HANDLE, in contrast to "existing HANDLE values" ?

Resouce can be not 2D non-mipmapped?




Hideyuki Nagase on Wed, 19 Sep 2012 20:35:24

Compared to legacy handle, the major advantage offered by NT handle is security (or access control). With IDXGIResource1::CreateSharedHandle API, you will be able to specify security attribute to the shared handle. This allow you to share D3D resource securely within a process, or across multiple processes. It is also tighten what type of resource can be shared. With legacy sharing, D3D11 doesn't perform strong validation on resource type, which put some difficaulty in driver support and hard for application to expect what is sure to work across different hardware/drivers.