Share via


VolumeTexture.GetVolumeLevel(Int32) Method (Microsoft.DirectX.Direct3D)

Retrieves the specified volume texture level.

Definition

Visual Basic Public Function GetVolumeLevel( _
    ByVal level As Integer _
) As Volume
C# public Volume GetVolumeLevel(
    int level
);
C++ public:
VolumeGetVolumeLevel(
    int level
);
JScript public function GetVolumeLevel(
    level : int
) : Volume;

Parameters

level System.Int32
Value that identifies a level of the volume texture resource.

Return Value

Microsoft.DirectX.Direct3D.Volume
A Volume object that represents the returned volume level.

Remarks

This method returns a volume for the level specified by the level parameter.

Exceptions

InvalidCallException

The method call is invalid. For example, a parameter might contain an invalid value.