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

Retrieves a texture assigned to a stage for a device.

Definition

Visual Basic Public Function GetTexture( _
    ByVal stage As Integer _
) As Texture
C# public Texture GetTexture(
    int stage
);
C++ public:
TextureGetTexture(
    int stage
);
JScript public function GetTexture(
    stage : int
) : Texture;

Parameters

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

Return Value

Microsoft.DirectX.Direct3D.Texture
A BaseTexture object that represents the returned texture.

Remarks

Typically, methods that return state do not work on devices created using PureDevice. This method, however, is an exception.

Exceptions

InvalidCallException

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

See Also