Copies the 2D or 3D linear input data into the given subresource (mip + slice) of the resource, using pTiledResourceBaseAddress as the resource’s base address.
public:
HRESULT CopyIntoSubresource(
VOID *pTiledResourceBaseAddress,
UINT32 Plane,
UINT32 Subresource,
const VOID *pLinearData,
UINT32 RowPitchBytes,
UINT32 SlicePitchBytes
)
pTiledResourceBaseAddress
Type: VOID *
[in, out] The base address of the tiled resource, as a pointer to VOID. After this method returns, this location contains a copy of the input data. For offline texture preparation, pTiledResourceBaseAddress does not need to be properly aligned.
Plane
Type: UINT32
[in] The plane.
Subresource
Type: UINT32
[in] The subresource.
pLinearData
Type: VOID *
[in] The linear data to copy.
RowPitchBytes
Type: UINT32
[in] The row pitch, in bytes.
SlicePitchBytes
Type: UINT32
[in] The slice pitch, in bytes.
Type: HRESULT
S_OK if successful; otherwise, an error message.
Header: Declared in xg.h.
Library: Use xg_x.lib.