/// <summary> /// <p>Retrieves a level description of a volume texture resource.</p> /// </summary> /// <param name="level"><dd> <p>Identifies a level of the volume texture resource. This method returns a volume description for the level specified by this parameter. </p> </dd></param> /// <returns><dd> <p>Pointer to a <strong><see cref="SharpDX.Direct3D9.VolumeDescription"/></strong> structure, describing the returned volume texture level. </p> </dd></returns> /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirect3DVolumeTexture9::GetLevelDesc']/*"/> /// <msdn-id>bb205943</msdn-id> /// <unmanaged>HRESULT IDirect3DVolumeTexture9::GetLevelDesc([In] unsigned int Level,[Out] D3DVOLUME_DESC* pDesc)</unmanaged> /// <unmanaged-short>IDirect3DVolumeTexture9::GetLevelDesc</unmanaged-short> public SharpDX.Direct3D9.VolumeDescription GetLevelDescription(int level) { unsafe { SharpDX.Direct3D9.VolumeDescription descRef; descRef = new SharpDX.Direct3D9.VolumeDescription(); SharpDX.Result __result__; __result__= SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, level, &descRef,((void**)(*(void**)_nativePointer))[17]); __result__.CheckError(); return descRef; } }
/// <summary> /// <p>Retrieves a description of the volume.</p> /// </summary> /// <param name="descRef"><dd> <p>Pointer to a <strong><see cref="SharpDX.Direct3D9.VolumeDescription"/></strong> structure, describing the volume. </p> </dd></param> /// <returns><p>If the method succeeds, the return value is <see cref="SharpDX.Direct3D9.ResultCode.Success"/>. <see cref="SharpDX.Direct3D9.ResultCode.InvalidCall"/> is returned if the argument is invalid.</p></returns> /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirect3DVolume9::GetDesc']/*"/> /// <msdn-id>bb205935</msdn-id> /// <unmanaged>HRESULT IDirect3DVolume9::GetDesc([Out] D3DVOLUME_DESC* pDesc)</unmanaged> /// <unmanaged-short>IDirect3DVolume9::GetDesc</unmanaged-short> internal void GetDescription(out SharpDX.Direct3D9.VolumeDescription descRef) { unsafe { descRef = new SharpDX.Direct3D9.VolumeDescription(); SharpDX.Result __result__; fixed (void* descRef_ = &descRef) __result__= SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, descRef_,((void**)(*(void**)_nativePointer))[8]); __result__.CheckError(); } }