ID3DXPRTEngine::ScaleMeshChunk method

Scales all the samples associated with a given submesh. The method is useful for computing subsurface scattering.

Syntax

HRESULT ScaleMeshChunk(
  [in]      UINT            uMeshChunk,
  [in]      FLOAT           fScale,
  [in, out] LPD3DXPRTBUFFER pDataOut
);

Parameters

uMeshChunk [in]

Type: UINT

Location in the mesh at which to start scaling samples.

fScale [in]

Type: FLOAT

Value by which to multiply each vector in the submesh.

pDataOut [in, out]

Type: LPD3DXPRTBUFFER

Pointer to a ID3DXPRTBuffer object to receive rescaled samples in the submesh.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXPRTEngine