PrtEngine.ExtractPerVertexAlbedo(Mesh,DeclarationUsage,Int32) Method (Microsoft.DirectX.Direct3D)

Copies per-vertex albedo values from a mesh.

Definition

Visual BasicPublic Sub ExtractPerVertexAlbedo( _
    ByVal mesh As Mesh, _
    ByVal usage As DeclarationUsage, _
    ByVal numberChannels As Integer _
)
C#public void ExtractPerVertexAlbedo(
    Mesh mesh,
    DeclarationUsage usage,
    int numberChannels
);
C++public:
void ExtractPerVertexAlbedo(
    Meshmesh,
    DeclarationUsage usage,
    int numberChannels
);
JScriptpublic function ExtractPerVertexAlbedo(
    mesh : Mesh,
    usage : DeclarationUsage,
    numberChannels : int
);

Parameters

mesh Microsoft.DirectX.Direct3D.Mesh
The Mesh object used to create the PrtEngine.
usage Microsoft.DirectX.Direct3D.DeclarationUsage
Vertex DeclarationUsage descriptions to copy from the mesh.
numberChannels System.Int32
Number of color channels to copy from the mesh. Set to 1 to specify gray materials (R = G = B), or 3 to enable color bleeding effects.

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.
Show: