Texture.Texture Constructor

Language:

Creates a new instance of the Texture class.

Definition

Visual Basic Public Sub New( _
    ByVal pInterop As IDirect3DTexture9 _
)
C# public Texture(
    IDirect3DTexture9 pInterop
);
C++ public:
 Texture(
    IDirect3DTexture9 pInterop
);
JScript public function Texture(
    pInterop : IDirect3DTexture9
);

Parameters

pInterop Microsoft.DirectX.PrivateImplementationDetails.IDirect3DTexture9
Unmanaged Component Object Model (COM) IDirect3DTexture9 interface pointer.

Remarks

An application can discover support for automatic generation of mipmaps in a particular format by calling Manager.CheckDeviceFormat with Usage.AutoGenerateMipMap. If Manager.CheckDeviceFormat returns false, the Texture constructor succeeds, but returns a single-level texture.

Exceptions
InvalidCallException The method call is invalid. For example, a parameter might contain an invalid value.
OutOfVideoMemoryException Microsoft Direct3D does not have enough display memory to perform the operation.
OutOfMemoryException Leave Site 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