展開 最小化

D3D10_DDI_RESOURCE_MISC_FLAG enumeration

Identifies miscellaneous information about a resource.

Syntax


typedef enum D3D10_DDI_RESOURCE_MISC_FLAG { 
  D3D10_DDI_RESOURCE_AUTO_GEN_MIP_MAP                       = 0x00000001L,
  D3D10_DDI_RESOURCE_MISC_SHARED                            = 0x00000002L,
  D3D10_DDI_RESOURCE_MISC_DISCARD_ON_PRESENT                = 0x00000008L,
#if D3D11DDI_MINOR_HEADER_VERSION >= 1
  D3D11_DDI_RESOURCE_MISC_DRAWINDIRECT_ARGS                 = 0x00000010L,
  D3D11_DDI_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS            = 0x00000020L,
  D3D11_DDI_RESOURCE_MISC_BUFFER_STRUCTURED                 = 0x00000040L,
  D3D11_DDI_RESOURCE_MISC_RESOURCE_CLAMP                    = 0x00000080L,
#endif 
  D3D10_DDI_RESOURCE_MISC_REMOTE                            = 0x00000400L,
#if D3D11DDI_MINOR_HEADER_VERSION >= 3
  D3D11_1DDI_RESOURCE_MISC_RESTRICTED_CONTENT               = 0x00000800L,
  D3D11_1DDI_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER  = 0x00001000L,
#endif 
#if D3D11DDI_MINOR_HEADER_VERSION >= 4
  D3DWDDM1_3DDI_RESOURCE_MISC_CROSS_ADAPTER                 = 0x00002000L,
  D3DWDDM1_3DDI_RESOURCE_MISC_TILED                         = 0x00004000L,
  D3DWDDM1_3DDI_RESOURCE_MISC_TILE_POOL                     = 0x00008000L

#endif } D3D10_DDI_RESOURCE_MISC_FLAG;

Constants

D3D10_DDI_RESOURCE_AUTO_GEN_MIP_MAP

The resource can be used with the GenMips function.

D3D10_DDI_RESOURCE_MISC_SHARED

The resource can be shared by multiple devices and processes.

D3D10_DDI_RESOURCE_MISC_DISCARD_ON_PRESENT

The resource is not required to persist across presentations.

For more information about this value, see the Remarks section of the CreateResource(D3D10) reference page.

Supported starting with Windows Server 2008, and Windows Vista with Service Pack 1 (SP1).

D3D11_DDI_RESOURCE_MISC_DRAWINDIRECT_ARGS

The resource is a buffer that the runtime can use as the argument buffer in a call to the driver's DrawIndexedInstancedIndirect, DrawInstancedIndirect, or DispatchIndirect function.

Supported starting with Windows 7.

D3D11_DDI_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS

The resource is a buffer on which the driver's CreateShaderResourceView(D3D11) function can create a raw-format view. A raw-format view is created through a call to the driver's CreateShaderResourceView(D3D11) function with the D3D11_DDI_BUFFEREX_SRV_FLAG_RAW flag set in the BufferEx member of the D3D11DDIARG_CREATESHADERRESOURCEVIEW structure. Raw-format views allow to read (and write in the case of unordered access view (UAV) objects) up to four DWORD values in one instruction.

Supported starting with Windows 7.

Supported in Windows 7 and later versions.

D3D11_DDI_RESOURCE_MISC_BUFFER_STRUCTURED

The resource is a buffer that has its memory sectioned into equally sized pieces (structures). The structure size of each piece is provided in the resource declaration. The drivers might be able to use this information to optimize memory layout.

Supported starting with Windows 7.

D3D11_DDI_RESOURCE_MISC_RESOURCE_CLAMP

The resource must consider any resource clamp, which a call to the driver's SetResourceMinLOD function applies.

Supported starting with Windows 7.

D3D10_DDI_RESOURCE_MISC_REMOTE

This value is for internal use only. Do not use.

D3D11_1DDI_RESOURCE_MISC_RESTRICTED_CONTENT

The resource can contain protected content. This value should be used only if the driver and hardware support content protection.

Supported starting with Windows 8.

D3D11_1DDI_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER

The driver should restrict access to the shared surface. This value should be used only when a shared surface is created. The process that is creating the surface is always allowed to open the shared resource.

Supported starting with Windows 8.

D3DWDDM1_3DDI_RESOURCE_MISC_CROSS_ADAPTER

The resource is a shared cross-adapter resource.

The user-mode display driver should record information about the cross-adapter resource in a private driver data structure. The display miniport driver can call the DxgkCbGetHandleData function to retrieve this private data.

The DirectX graphics kernel subsystem calls the DxgkDdiDescribeAllocation function to get information on the cross-adapter resource when it needs to open the resource on another adapter. The display miniport must ensure that this information is correct.

Supported starting with Windows 8.1.

D3DWDDM1_3DDI_RESOURCE_MISC_TILED

The resource is tiled.

Supported starting with Windows 8.1.

D3DWDDM1_3DDI_RESOURCE_MISC_TILE_POOL

The resource is a tile pool. Must be a buffer with D3D10_DDI_RESOURCE_USAGE usage type D3D10_DDI_USAGE_DEFAULT.

Supported starting with Windows 8.1.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3d10umddi.h (include D3d10umddi.h)

See also

CreateResource(D3D10)
CreateShaderResourceView(D3D11)
D3D10_DDI_RESOURCE_USAGE
D3D10DDIARG_CREATERESOURCE
D3D11DDIARG_CREATESHADERRESOURCEVIEW
DispatchIndirect
DrawIndexedInstancedIndirect
DrawInstancedIndirect
DxgkCbGetHandleData
GenMips
SetResourceMinLOD

 

 

Send comments about this topic to Microsoft

表示:
© 2014 Microsoft