XGCreateTextureComputerWithPitch

Creates a texture address computer object for a Direct3D12-style resource description.

Syntax

HRESULT XGCreateTextureComputerWithPitch(
         const XG_RESOURCE_DESC *pDesc,
         UINT Pitch,
         XGTextureAddressComputer **ppComputer
)  

Parameters

pDesc
Type: XG_RESOURCE_DESC *

[in] Describes the resource.

Pitch
Type: UINT 

[in] The pitch in texels.

ppComputer
Type: XGTextureAddressComputer **

[out] On success, contains the address of an XGTextureAddressComputer configured for the passed-in resource and pitch.

Return value

Type: HRESULT 

E_INVALIDARG if pDesc describes a buffer, or one of the return codes described in Direct3D 11 return codes.

Remarks

Buffers are not supported.

Requirements

Header: Declared in xg.h.

Library: Use xg_x.lib.