XGComputeOptimalTileMode

Computes the bandwidth-optimal tile mode for the given texture configuration.

Syntax

XG_TILE_MODE XGComputeOptimalTileMode(
         XG_RESOURCE_DIMENSION ResourceDimension,
         XG_FORMAT Format,
         UINT32 Width,
         UINT32 Height,
         UINT32 DepthOrArraySize,
         UINT32 SampleCount,
         UINT BindFlags,
         UINT MiscFlags
)  

Parameters

ResourceDimension
Type: XG_RESOURCE_DIMENSION 

[in] The dimension of the resource, such as XG_RESOURCE_DIMENSION_TEXTURE2D, as a pointer to an XG_RESOURCE_DIMENSION enumeration.

Format
Type: XG_FORMAT 

[in] The resource data format, as a pointer to an XG_FORMAT enumeration.

Width
Type: UINT32 

[in] The width of the texture configuration.

Height
Type: UINT32 

[in] The width of the texture configuration.

DepthOrArraySize
Type: UINT32 

[in] The depth or array size.

SampleCount
Type: UINT32 

[in] The number of samples.

BindFlags
Type: UINT 

[in] Flags that identify how the buffer will be bound to the pipeline. A logically OR’d combination of XG_BIND_FLAG enumeration constants.

MiscFlags
Type: UINT 

[in] Miscellaneous flags to control this operation, as a bitwise-OR’d combination of XG_RESOURCE_MISC_FLAG enumeration constants, or 0 if unused.

Return value

Type: XG_TILE_MODE 

The bandwidth-optimal tile mode, as a pointer to an XG_TILE_MODE enumeration.

Requirements

Header: Declared in xg.h.

Library: Use xg_x.lib.