PrtBuffer.FromFile Method

Language:

Loads into memory a precomputed radiance transfer (PRT) buffer that was saved to disk.

Definition

Visual Basic Public Shared Function FromFile( _
    ByVal filename As String _
) As PrtBuffer
C# public static PrtBuffer FromFile(
    string filename
);
C++ public:
static PrtBufferFromFile(
    Stringfilename
);
JScript public static function FromFile(
    filename : String
) : PrtBuffer;

Parameters

filename System.String
Name of the file from which to load the buffer data.

Return Value

Microsoft.DirectX.Direct3D.PrtBuffer
Returns a PrtBuffer object that contains the PRT buffer data.

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.

See Also


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