Share via


VolumeTexture.VolumeTexture(IDirect3DVolumeTexture9,Device,Pool) Constructor (Microsoft.DirectX.Direct3D)

Creates a new instance of the VolumeTexture class.

Definition

Visual Basic Public Sub New( _
    ByVal lp As IDirect3DVolumeTexture9, _
    ByVal device As Device, _
    ByVal pool As Pool _
)
C# public VolumeTexture(
    IDirect3DVolumeTexture9 lp,
    Device device,
    Pool pool
);
C++ public:
 VolumeTexture(
    IDirect3DVolumeTexture9 lp,
    Devicedevice,
    Pool pool
);
JScript public function VolumeTexture(
    lp : IDirect3DVolumeTexture9,
    device : Device,
    pool : Pool
);

Parameters

lp Microsoft.DirectX.PrivateImplementationDetails.IDirect3DVolumeTexture9
Unmanaged Component Object Model (COM) IDirect3DVolumeTexture9 interface pointer.
device Microsoft.DirectX.Direct3D.Device
A Device object to associate with the VolumeTexture object.
pool Microsoft.DirectX.Direct3D.Pool
Member of the Pool enumerated type that describes the memory class into which the volume texture should be placed.

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.

OutOfMemoryExceptionLeave Site

Direct3D could not allocate sufficient memory to complete the call.