Copies the 2D or 3D linear input data from the given subresource (mip + slice) of the resource.
public:
HRESULT CopyFromSubresource(
VOID *pLinearData,
UINT32 Plane,
UINT32 Subresource,
const VOID *pTiledResourceBaseAddress,
UINT32 RowPitchBytes,
UINT32 SlicePitchBytes
)
pLinearData
Type: VOID *
[in, out] The location to copy the data into.
Plane
Type: UINT32
[in] The plane.
Subresource
Type: UINT32
[in] The subresource to copy from.
pTiledResourceBaseAddress
Type: VOID *
[in] The base address of the tiled resource to copy from, as a pointer to VOID. For offline texture preparation, pTiledResourceBaseAddress does not need to be properly aligned.
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.
This method copies the 2D or 3D linear input data from the given subresource (mip + slice) of the resource, using pTiledResourceBaseAddress as the resource’s base address. For offline texture preparation, pTiledResourceBaseAddress does not need to be properly aligned.
Header: Declared in xg.h.
Library: Use xg_x.lib.