PrtEngine.SetSamplingInfo(Int32,Boolean,Boolean,Boolean,Single) Method (Microsoft.DirectX.Direct3D)

Sets sampling properties used by the precomputed radiance transfer (PRT) simulator.

Definition

Visual BasicPublic Sub SetSamplingInfo( _
    ByVal numberRays As Integer, _
    ByVal isUsingSphere As Boolean, _
    ByVal isUsingCosine As Boolean, _
    ByVal isAdaptive As Boolean, _
    ByVal adaptiveThreshold As Single _
)
C#public void SetSamplingInfo(
    int numberRays,
    bool isUsingSphere,
    bool isUsingCosine,
    bool isAdaptive,
    float adaptiveThreshold
);
C++public:
void SetSamplingInfo(
    int numberRays,
    bool isUsingSphere,
    bool isUsingCosine,
    bool isAdaptive,
    float adaptiveThreshold
);
JScriptpublic function SetSamplingInfo(
    numberRays : int,
    isUsingSphere : boolean,
    isUsingCosine : boolean,
    isAdaptive : boolean,
    adaptiveThreshold : float
);

Parameters

numberRays System.Int32
Number of light rays to direct at each sample. Must be greater than zero.
isUsingSphere System.Boolean
Set to true if samples will be computed over a full sphere. Set to false if samples will be computed over a hemisphere.
isUsingCosine System.Boolean
Set to true to use a cosine weighting of samples. If both isUsingCosine and isUsingSphere are true, the method will fail.
isAdaptive System.Boolean
Must be false. Adaptive sampling is currently not implemented.
adaptiveThreshold System.Single
Ignored.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
NotImplementedExceptionLeave Site Not implemented.
OutOfMemoryExceptionLeave Site Microsoft Direct3D could not allocate sufficient memory to complete the call.
Show: