Device.GetVolumeTexture(Int32) Method (Microsoft.DirectX.Direct3D)

Retrieves the volume texture assigned to a stage for a device.

Definition

Visual Basic Public Function GetVolumeTexture( _
    ByVal stage As Integer _
) As VolumeTexture
C# public VolumeTexture GetVolumeTexture(
    int stage
);
C++ public:
VolumeTextureGetVolumeTexture(
    int stage
);
JScript public function GetVolumeTexture(
    stage : int
) : VolumeTexture;

Parameters

stage System.Int32
Stage identifier of the VolumeTexture to retrieve. Stage identifiers are zero-based.

Return Value

Microsoft.DirectX.Direct3D.VolumeTexture
A VolumeTexture object that represents the returned VolumeTexture.

Remarks

Exceptions

InvalidOperationExceptionLeave Site

The texture returned was not of type VolumeTexture.