IntegratedMetricTensor.ComputeFromPerTexelSignal(Mesh,Int32,Single[],Int32,Int32,Int32,Int32,ImtWrap) Method (Microsoft.DirectX.Direct3D)

Calculates an IMT from per-texel data. This function is very similar to ComputeFromTexture, but it uses a float array to pass in the data, and it can calculate higher dimensional values than 4.


Visual Basic Public Shared Function ComputeFromPerTexelSignal( _
    ByVal mesh As Mesh, _
    ByVal textureIndex As Integer, _
    ByVal texelSignal() As Single, _
    ByVal width As Integer, _
    ByVal height As Integer, _
    ByVal signalDimension As Integer, _
    ByVal components As Integer, _
    ByVal flags As ImtWrap _
) As GraphicsStream
C# public static GraphicsStream ComputeFromPerTexelSignal(
    Mesh mesh,
    int textureIndex,
    float[] texelSignal,
    int width,
    int height,
    int signalDimension,
    int components,
    ImtWrap flags
C++ public:
static GraphicsStreamComputeFromPerTexelSignal(
    int textureIndex,
    array<float>^ texelSignal,
    int width,
    int height,
    int signalDimension,
    int components,
    ImtWrap flags
JScript public static function ComputeFromPerTexelSignal(
    mesh : Mesh,
    textureIndex : int,
    texelSignal : float[],
    width : int,
    height : int,
    signalDimension : int,
    components : int,
    flags : ImtWrap
) : GraphicsStream;


mesh Microsoft.DirectX.Direct3D.Mesh
An input mesh (see Mesh) that contains the object geometry for calculating the IMT.
textureIndex System.Int32
Zero-based texture coordinate index that identifies which set of texture coordinates to use.
texelSignal System.Single[]
An array of floating-point values that represent the texel signals. The array size is equivalent to width*height*components.
width System.Int32
The width of the texture.
height System.Int32
The height of the texture.
signalDimension System.Int32
The number of floating-point values per component in each element of the texelSignal array.
components System.Int32
The number of components in each element of the texelSignal array.
flags Microsoft.DirectX.Direct3D.ImtWrap
Combination of one or more ImtWrap flags.

Return Value

A GraphicsStream object that will return the calculated IMT data.




The operation failed.