Returns the resource tiling layout, if the resource is created as a tiled resource using the XG_RESOURCE_MISC_TILED flag.
public:
HRESULT GetResourceTiling(
UINT32 *pNumTilesForEntireResource,
XG_PACKED_MIP_DESC *pPackedMipDesc,
XG_TILE_SHAPE *pStandardTileShapeForNonPackedMips,
UINT32 *pNumSubresourceTilings,
UINT32 FirstSubresourceTilingToGet,
XG_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips
)
pNumTilesForEntireResource
Type: UINT32 *
[out, optional] The number of tiles for the entire resource, as a pointer to UINT32.
pPackedMipDesc
Type: XG_PACKED_MIP_DESC *
[out, optional] The description of the packed mip, as a pointer to a XG_PACKED_MIP_DESC structure.
pStandardTileShapeForNonPackedMips
Type: XG_TILE_SHAPE *
[out, optional] The standard tile shape for non-packed mips, as a pointer to a XG_TILE_SHAPE structure.
pNumSubresourceTilings
Type: UINT32 *
[in, out, optional] The number of subresource tilings, as a pointer to UINT32.
FirstSubresourceTilingToGet
Type: UINT32
[in] The first subresource tiling to get, as a UINT32.
pSubresourceTilingsForNonPackedMips
Type: XG_SUBRESOURCE_TILING *
[out, optional] The subresource tilings for non-packed mips, as a pointer to a XG_SUBRESOURCE_TILING structure.
Type: HRESULT
S_OK if successful; otherwise, an error code.
This method returns the resource tiling layout, if the resource is created as a tiled resource using the XG_RESOURCE_MISC_TILED flag.
Header: Declared in xg.h.
Library: Use xg_x.lib.