VolumeTexture.VolumeTexture Constructor

Language:

Creates a new instance of the VolumeTexture class.

Definition

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

Parameters

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

Remarks

For the width, height, and depth parameters, the pixel dimensions of subsequent levels are the truncated value of half of the previous level's pixel dimension (independently). Each dimension clamps at a size of 1 pixel. Thus, if the division by 2 results in 0 (zero), 1 is taken instead. The maximum dimension that a driver supports (for width, height, and depth) can be found in Caps.MaxVolumeExtent.

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.


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