Espandi Riduci a icona

DXGKARG_DESCRIBEALLOCATION structure

The DXGKARG_DESCRIBEALLOCATION structure describes an existing allocation.

Syntax


typedef struct _DXGKARG_DESCRIBEALLOCATION {
  HANDLE                       hAllocation;
  UINT                         Width;
  UINT                         Height;
  D3DDDIFORMAT                 Format;
  D3DDDI_MULTISAMPLINGMETHOD   MultisampleMethod;
  D3DDDI_RATIONAL              RefreshRate;
  UINT                         PrivateDriverFormatAttribute;
#if (DXGKDDI_INTERFACE_VERSION >= DXGKDDI_INTERFACE_VERSION_WIN8)
  DXGK_DESCRIBEALLOCATIONFLAGS Flags;
  D3DDDI_ROTATION              Rotation;
#endif 
} DXGKARG_DESCRIBEALLOCATION;

Members

hAllocation

[in] A handle to an allocation that information is requested for. The driver previously returned this handle in the hAllocation member of the DXGK_ALLOCATIONINFO structure from a call to the driver's DxgkDdiCreateAllocation function.

Width

[out] The width of the allocation, in pixels. The driver returns the width value.

Height

[out] The height of the allocation, in pixels. The driver returns the height value.

Format

[out] A D3DDDIFORMAT-typed value that indicates the pixel format of the allocation. The driver returns the format value.

MultisampleMethod

[out] A D3DDDI_MULTISAMPLINGMETHOD structure that describes the multiple-sampling method that is used for the allocation. The driver returns the description.

RefreshRate

[out] A D3DDDI_RATIONAL structure that indicates the refresh rate that the primary surface was created with, if applicable.

PrivateDriverFormatAttribute

[out] A UINT value that specifies a private format attribute for the allocation. The driver specifies surface format attributes (for example, the pixel layout of a tiled surface) that it otherwise cannot expose to the operating system.

The operating system uses the information in PrivateDriverFormatAttribute to compare two surfaces. For example, an A8R8B8G8 800x600 surface and an X8R8B8G8 800x600 surface should have the same information in PrivateDriverFormatAttribute if they have the same format attributes, which includes pixel layout.

Flags

[out] This member is reserved.

Supported starting with Windows 8.

Rotation

[out] This member is reserved.

Supported starting with Windows 8.

Requirements

Version

Available starting with Windows Vista.

Header

D3dkmddi.h (include D3dkmddi.h)

See also

D3DDDI_MULTISAMPLINGMETHOD
D3DDDI_RATIONAL
D3DDDI_ROTATION
D3DDDIFORMAT
DXGK_ALLOCATIONINFO
DXGK_DESCRIBEALLOCATIONFLAGS
DxgkDdiCreateAllocation
DxgkDdiDescribeAllocation

 

 

Send comments about this topic to Microsoft

Mostra:
© 2014 Microsoft