Creates a texture address computer object for the given D3D12-style resource desc.
HRESULT XGCreateTextureComputer(
const XG_RESOURCE_DESC *pDesc,
XGTextureAddressComputer **ppComputer
)
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.
Type: HRESULT
S_OK if successful; otherwise, an error message. Buffer descs are not supported, and will return E_INVALIDARG.
Buffer descs are not supported, and will return E_INVALIDARG.
Header: Declared in xg.h.
Library: Use xg_x.lib.