Share via


PrtEngine.ScaleMeshChunk(Int32,Single,PrtBuffer) Method (Microsoft.DirectX.Direct3D)

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.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.