Microsoft DirectX 8.1 (Visual Basic) |
Creates an empty volume texture, adjusting the calling parameters as necessary.
object.CreateVolumeTexture( _ Device As Direct3DDevice8, _ Width As Long, _ Height As Long, _ Depth As Long, _ MipLevels As Long, _ Usage As Long, _ PixelFormat As CONST_D3DFORMAT, _ Pool As CONST_D3DPOOL) As Direct3DVolume8
Direct3DVolume8 object representing the created volume texture object.
If the method fails, an error is raised and Err.Number can be set to one of the following values.
D3DERR_INVALIDCALL |
D3DERR_NOTAVAILABLE |
D3DERR_OUTOFVIDEOMEMORY |
E_OUTOFMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
Internally, D3DX8.CreateVolumeTexture uses D3DX8.CheckVolumeTextureRequirements to adjust the calling parameters. Therefore, calls to D3DX8.CreateVolumeTexture often succeed where calls to Direct3DDevice8.CreateVolumeTexture fail.