XGCreateTextureComputer

Creates a texture address computer object for the given D3D12-style resource desc.

Syntax

HRESULT XGCreateTextureComputer(
         const XG_RESOURCE_DESC *pDesc,
         XGTextureAddressComputer **ppComputer
)  

Parameters

pDesc
Type: XG_RESOURCE_DESC *

[in] The resource description, as a pointer to XG_RESOURCE_DESC structure, which can describe a texture of any dimension.

ppComputer
Type: XGTextureAddressComputer **

[out] Outputs the computed texture layout for the given texture resource, along with additional state that allows the user to perform texture element microtiling and macrotiling, as a pointer to pointer to an XGTextureAddressComputer instance.

Return value

Type: HRESULT 

S_OK if successful; otherwise, an error message. Buffer descs are not supported, and will return E_INVALIDARG.

Remarks

Buffer descs are not supported, and will return E_INVALIDARG.

Requirements

Header: Declared in xg.h.

Library: Use xg_x.lib.