1595 {
1596
1598 {
1600 }
1603 {
1605 int val =
_rows * columns;
1607 if (count2 == 0)
1608 {
1612 {
1613 try
1614 {
1615 int num2 = 0;
1616 int num3 = 0;
1618 if (0 < rows)
1619 {
1620 while (num2 < num)
1621 {
1622 int num4 = 0;
1624 if (0 < columns2)
1625 {
1626 while (num2 < num)
1627 {
1628 array[num2] = (int)(
double)(*(
float*)((ref *(_003F*)((num3 * 4 + num4) * 4)) + (ref *(_003F*)ptr)));
1629 num2++;
1630 num4++;
1632 if (num4 >= columns2)
1633 {
1634 break;
1635 }
1636 }
1637 }
1638 num3++;
1640 if (num3 >= rows)
1641 {
1642 break;
1643 }
1644 }
1645 }
1646 }
1647 catch
1648 {
1649
1650 ptr = null;
1651 throw;
1652 }
1653 }
1654 }
1655 else
1656 {
1659 fixed (float* ptr2 = &valueMatrixArray[0].M11)
1660 {
1661 try
1662 {
1663 int num6 = 0;
1664 int num7 = 0;
1665 if (0 < count2)
1666 {
1667 while (num6 < num5)
1668 {
1669 int num8 = 0;
1671 if (0 < rows2)
1672 {
1673 while (num6 < num5)
1674 {
1675 int num9 = 0;
1677 if (0 < columns3)
1678 {
1679 while (num6 < num5)
1680 {
1681 array[num6] = (int)(
double)(*(
float*)((ref *(_003F*)(((num7 * 4 + num8) * 4 + num9) * 4)) + (ref *(_003F*)ptr2)));
1682 num6++;
1683 num9++;
1685 if (num9 >= columns3)
1686 {
1687 break;
1688 }
1689 }
1690 }
1691 num8++;
1693 if (num8 >= rows2)
1694 {
1695 break;
1696 }
1697 }
1698 }
1699 num7++;
1700 if (num7 >= count2)
1701 {
1702 break;
1703 }
1704 }
1705 }
1706 }
1707 catch
1708 {
1709
1710 ptr2 = null;
1711 throw;
1712 }
1713 }
1714 }
1715 }
1716 else
1717 {
1718 ID3DXBaseEffect* ptr3 =
pEffect;
1720 int num10 = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, sbyte*, _D3DXPARAMETER_DESC*,
int>)(
int)(*(uint*)(*(
int*)ptr3 + 16)))((nint)ptr3,
_handle, &d3DXPARAMETER_DESC);
1721 if (num10 < 0)
1722 {
1723 throw GraphicsHelpers.GetExceptionFromResult((uint)num10);
1724 }
1727 {
1728 try
1729 {
1730 int num12 = ((
count >= num11) ? num11 :
count);
1731 int num13 = *(
int*)
pEffect + 116;
1732 int num14 = ((delegate* unmanaged[Stdcall, Stdcall]<
IntPtr, sbyte*,
int*, uint,
int>)(
int)(*(uint*)num13))((nint)
pEffect,
_handle, (
int*)ptr4, (uint)num12);
1733 if (num14 < 0)
1734 {
1735 throw GraphicsHelpers.GetExceptionFromResult((uint)num14);
1736 }
1739 }
1740 catch
1741 {
1742
1743 ptr4 = null;
1744 throw;
1745 }
1746 }
1747 }
1749 }
EffectParameterClass _paramClass
unsafe Matrix GetValueMatrix()
unsafe ID3DXBaseEffect * pEffect
EffectParameterCollection pElementCollection
unsafe Matrix[] GetValueMatrixArray(int count)
static byte Min(byte val1, byte val2)
static void Copy(int[] source, int startIndex, IntPtr destination, int length)