702 {
704 {
706 }
708 if (paramClass == EffectParameterClass.Vector &&
_rows == 1)
709 {
711 {
712 default:
714 case 4:
715 {
720 *(
float*)(&d3DXVECTOR2) =
value;
721 ID3DXBaseEffect* ptr =
pEffect;
722 int num2 = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, sbyte*, D3DXVECTOR4*,
int>)(
int)(*(uint*)(*(
int*)ptr + 136)))((nint)ptr,
_handle, &d3DXVECTOR2);
723 if (num2 < 0)
724 {
725 throw GraphicsHelpers.GetExceptionFromResult((uint)num2);
726 }
727 break;
728 }
729 case 3:
730 {
734 *(
float*)(&d3DXVECTOR3) =
value;
735 ID3DXBaseEffect* ptr =
pEffect;
736 int num3 = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, sbyte*,
float*, uint,
int>)(
int)(*(uint*)(*(
int*)ptr + 128)))((nint)ptr,
_handle, (
float*)(&d3DXVECTOR3), 3u);
737 if (num3 < 0)
738 {
739 throw GraphicsHelpers.GetExceptionFromResult((uint)num3);
740 }
741 break;
742 }
743 case 2:
744 {
747 *(
float*)(&d3DXVECTOR) =
value;
748 ID3DXBaseEffect* ptr =
pEffect;
749 int num = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, sbyte*,
float*, uint,
int>)(
int)(*(uint*)(*(
int*)ptr + 128)))((nint)ptr,
_handle, (
float*)(&d3DXVECTOR), 2u);
750 if (num < 0)
751 {
752 throw GraphicsHelpers.GetExceptionFromResult((uint)num);
753 }
754 break;
755 }
756 }
757 }
758 else if (paramClass == EffectParameterClass.Matrix)
759 {
764 *(
float*)(&d3DXMATRIX) =
value;
777 ID3DXBaseEffect* ptr =
pEffect;
778 int num4 = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, sbyte*, D3DXMATRIX*,
int>)(
int)(*(uint*)(*(
int*)ptr + 152)))((nint)ptr,
_handle, &d3DXMATRIX);
779 if (num4 < 0)
780 {
781 throw GraphicsHelpers.GetExceptionFromResult((uint)num4);
782 }
783 }
784 else
785 {
786 if (paramClass != 0)
787 {
789 }
790 ID3DXBaseEffect* ptr =
pEffect;
791 int num5 = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, sbyte*, float,
int>)(
int)(*(uint*)(*(
int*)ptr + 120)))((nint)ptr,
_handle,
value);
792 if (num5 < 0)
793 {
794 throw GraphicsHelpers.GetExceptionFromResult((uint)num5);
795 }
796 }
797 }
EffectParameterClass _paramClass
unsafe ID3DXBaseEffect * pEffect
EffectParameterCollection pElementCollection