2577 {
2579 if (paramType != EffectParameterType.Texture && paramType != EffectParameterType.Texture3D)
2580 {
2582 }
2583 IDirect3DBaseTexture9* ptr = null;
2584 IDirect3DVolumeTexture9* ptr2 = null;
2586 ID3DXBaseEffect* ptr3 =
pEffect;
2587 int num = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, sbyte*, IDirect3DBaseTexture9**,
int>)(
int)(*(uint*)(*(
int*)ptr3 + 212)))((nint)ptr3,
_handle, &ptr);
2588 if (num < 0)
2589 {
2590 throw GraphicsHelpers.GetExceptionFromResult((uint)num);
2591 }
2592 if (ptr != null)
2593 {
2594 IDirect3DBaseTexture9* ptr4 = (IDirect3DBaseTexture9*)(int)(*(uint*)((byte*)ptr + 8));
2595 num = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, _GUID*,
void**,
int>)(
int)(*(uint*)(
int)(*(uint*)ptr4)))((nint)ptr4, (_GUID*)
System.
Runtime.
CompilerServices.
Unsafe.AsPointer(ref _003CModule_003E.IID_IDirect3DVolumeTexture9), (
void**)(&ptr2));
2596 if (num >= 0)
2597 {
2599 num = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, uint, _D3DVOLUME_DESC*,
int>)(
int)(*(uint*)(*(
int*)ptr2 + 68)))((nint)ptr2, 0u, &d3DVOLUME_DESC);
2600 if (num >= 0)
2601 {
2603 }
2604 }
2605 if (ptr != null)
2606 {
2607 IDirect3DBaseTexture9* intPtr = ptr;
2608 ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, uint>)(
int)(*(uint*)(*(
int*)intPtr + 8)))((nint)intPtr);
2609 ptr = null;
2610 }
2611 if (num < 0)
2612 {
2613 throw GraphicsHelpers.GetExceptionFromResult((uint)num);
2614 }
2615 }
2616 return result;
2617 }
EffectParameterType _paramType
unsafe ID3DXBaseEffect * pEffect
GraphicsDevice GraphicsDevice