XGCreateTexture2DComputer

Creates a texture address computer object for the given 2D texture desc.

Syntax

HRESULT XGCreateTexture2DComputer(
         const XG_TEXTURE2D_DESC *pDesc,
         XGTextureAddressComputer **ppComputer
)  

Parameters

pDesc
Type: XG_TEXTURE2D_DESC *

[in] A description of a 2D texture, as a pointer to an XG_TEXTURE2D_DESC structure.

ppComputer
Type: XGTextureAddressComputer **

[out] A computed texture layout, as a pointer to an XGTextureAddressComputer structure.

Return value

Type: HRESULT 

S_OK if successful; otherwise, an error code.

Returns E_INVALIDARG in the following cases:

Requirements

Header: Declared in xg.h.

Library: Use xg_x.lib.