PrtEngine.ScaleMeshChunk Method

Language:

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

Definition

Visual Basic Public Sub ScaleMeshChunk( _
    ByVal meshChunk As Integer, _
    ByVal scale As Single, _
    ByVal data As PrtBuffer _
)
C# public void ScaleMeshChunk(
    int meshChunk,
    float scale,
    PrtBuffer data
);
C++ public:
void ScaleMeshChunk(
    int meshChunk,
    float scale,
    PrtBufferdata
);
JScript public function ScaleMeshChunk(
    meshChunk : int,
    scale : float,
    data : PrtBuffer
);

Parameters

meshChunk System.Int32
Location in the mesh at which to start scaling samples.
scale System.Single
Value by which to multiply each vector in the submesh.
data Microsoft.DirectX.Direct3D.PrtBuffer
A PrtBuffer object to receive rescaled samples in the submesh.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft Direct3D could not allocate sufficient memory to complete the call.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center