using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using UnityEngine.Scripting; namespace UnityEngine { // Token: 0x02000056 RID: 86 public sealed class MaterialPropertyBlock { // Token: 0x0600064E RID: 1614 RVA: 0x000085A8 File Offset: 0x000067A8 public MaterialPropertyBlock() { this.InitBlock(); } // Token: 0x0600064F RID: 1615 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal extern void InitBlock(); // Token: 0x06000650 RID: 1616 [ThreadAndSerializationSafe] [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] internal extern void DestroyBlock(); // Token: 0x06000651 RID: 1617 RVA: 0x000085B8 File Offset: 0x000067B8 ~MaterialPropertyBlock() { this.DestroyBlock(); } // Token: 0x17000186 RID: 390 // (get) Token: 0x06000652 RID: 1618 public extern bool isEmpty { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x06000653 RID: 1619 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public extern void Clear(); // Token: 0x06000654 RID: 1620 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void SetFloatImpl(int nameID, float value); // Token: 0x06000655 RID: 1621 RVA: 0x000085E8 File Offset: 0x000067E8 private void SetVectorImpl(int nameID, Vector4 value) { MaterialPropertyBlock.INTERNAL_CALL_SetVectorImpl(this, nameID, ref value); } // Token: 0x06000656 RID: 1622 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_SetVectorImpl(MaterialPropertyBlock self, int nameID, ref Vector4 value); // Token: 0x06000657 RID: 1623 RVA: 0x000085F4 File Offset: 0x000067F4 private void SetMatrixImpl(int nameID, Matrix4x4 value) { MaterialPropertyBlock.INTERNAL_CALL_SetMatrixImpl(this, nameID, ref value); } // Token: 0x06000658 RID: 1624 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_SetMatrixImpl(MaterialPropertyBlock self, int nameID, ref Matrix4x4 value); // Token: 0x06000659 RID: 1625 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void SetTextureImpl(int nameID, Texture value); // Token: 0x0600065A RID: 1626 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void SetBufferImpl(int nameID, ComputeBuffer value); // Token: 0x0600065B RID: 1627 RVA: 0x00008600 File Offset: 0x00006800 private void SetColorImpl(int nameID, Color value) { MaterialPropertyBlock.INTERNAL_CALL_SetColorImpl(this, nameID, ref value); } // Token: 0x0600065C RID: 1628 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_SetColorImpl(MaterialPropertyBlock self, int nameID, ref Color value); // Token: 0x0600065D RID: 1629 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern Array ExtractArrayFromList(object list); // Token: 0x0600065E RID: 1630 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void SetFloatArrayImpl(int nameID, float[] values); // Token: 0x0600065F RID: 1631 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void SetVectorArrayImpl(int nameID, Vector4[] values); // Token: 0x06000660 RID: 1632 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void SetMatrixArrayImpl(int nameID, Matrix4x4[] values); // Token: 0x06000661 RID: 1633 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern float GetFloatImpl(int nameID); // Token: 0x06000662 RID: 1634 RVA: 0x0000860C File Offset: 0x0000680C private Vector4 GetVectorImpl(int nameID) { Vector4 vector; MaterialPropertyBlock.INTERNAL_CALL_GetVectorImpl(this, nameID, out vector); return vector; } // Token: 0x06000663 RID: 1635 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_GetVectorImpl(MaterialPropertyBlock self, int nameID, out Vector4 value); // Token: 0x06000664 RID: 1636 RVA: 0x0000862C File Offset: 0x0000682C private Matrix4x4 GetMatrixImpl(int nameID) { Matrix4x4 matrix4x; MaterialPropertyBlock.INTERNAL_CALL_GetMatrixImpl(this, nameID, out matrix4x); return matrix4x; } // Token: 0x06000665 RID: 1637 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_GetMatrixImpl(MaterialPropertyBlock self, int nameID, out Matrix4x4 value); // Token: 0x06000666 RID: 1638 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern float[] GetFloatArrayImpl(int nameID); // Token: 0x06000667 RID: 1639 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern Vector4[] GetVectorArrayImpl(int nameID); // Token: 0x06000668 RID: 1640 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern Matrix4x4[] GetMatrixArrayImpl(int nameID); // Token: 0x06000669 RID: 1641 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void GetFloatArrayImplList(int nameID, object list); // Token: 0x0600066A RID: 1642 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void GetVectorArrayImplList(int nameID, object list); // Token: 0x0600066B RID: 1643 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void GetMatrixArrayImplList(int nameID, object list); // Token: 0x0600066C RID: 1644 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern Texture GetTextureImpl(int nameID); // Token: 0x0600066D RID: 1645 RVA: 0x0000864C File Offset: 0x0000684C public void SetFloat(string name, float value) { this.SetFloat(Shader.PropertyToID(name), value); } // Token: 0x0600066E RID: 1646 RVA: 0x0000865C File Offset: 0x0000685C public void SetFloat(int nameID, float value) { this.SetFloatImpl(nameID, value); } // Token: 0x0600066F RID: 1647 RVA: 0x00008668 File Offset: 0x00006868 public void SetVector(string name, Vector4 value) { this.SetVector(Shader.PropertyToID(name), value); } // Token: 0x06000670 RID: 1648 RVA: 0x00008678 File Offset: 0x00006878 public void SetVector(int nameID, Vector4 value) { this.SetVectorImpl(nameID, value); } // Token: 0x06000671 RID: 1649 RVA: 0x00008684 File Offset: 0x00006884 public void SetColor(string name, Color value) { this.SetColor(Shader.PropertyToID(name), value); } // Token: 0x06000672 RID: 1650 RVA: 0x00008694 File Offset: 0x00006894 public void SetColor(int nameID, Color value) { this.SetColorImpl(nameID, value); } // Token: 0x06000673 RID: 1651 RVA: 0x000086A0 File Offset: 0x000068A0 public void SetMatrix(string name, Matrix4x4 value) { this.SetMatrix(Shader.PropertyToID(name), value); } // Token: 0x06000674 RID: 1652 RVA: 0x000086B0 File Offset: 0x000068B0 public void SetMatrix(int nameID, Matrix4x4 value) { this.SetMatrixImpl(nameID, value); } // Token: 0x06000675 RID: 1653 RVA: 0x000086BC File Offset: 0x000068BC public void SetBuffer(string name, ComputeBuffer value) { this.SetBuffer(Shader.PropertyToID(name), value); } // Token: 0x06000676 RID: 1654 RVA: 0x000086CC File Offset: 0x000068CC public void SetBuffer(int nameID, ComputeBuffer value) { this.SetBufferImpl(nameID, value); } // Token: 0x06000677 RID: 1655 RVA: 0x000086D8 File Offset: 0x000068D8 public void SetTexture(string name, Texture value) { this.SetTexture(Shader.PropertyToID(name), value); } // Token: 0x06000678 RID: 1656 RVA: 0x000086E8 File Offset: 0x000068E8 public void SetTexture(int nameID, Texture value) { if (value == null) { throw new ArgumentNullException("value"); } this.SetTextureImpl(nameID, value); } // Token: 0x06000679 RID: 1657 RVA: 0x0000870C File Offset: 0x0000690C public void SetFloatArray(string name, List values) { this.SetFloatArray(Shader.PropertyToID(name), values); } // Token: 0x0600067A RID: 1658 RVA: 0x0000871C File Offset: 0x0000691C public void SetFloatArray(int nameID, List values) { this.SetFloatArray(nameID, (float[])MaterialPropertyBlock.ExtractArrayFromList(values)); } // Token: 0x0600067B RID: 1659 RVA: 0x00008734 File Offset: 0x00006934 public void SetFloatArray(string name, float[] values) { this.SetFloatArray(Shader.PropertyToID(name), values); } // Token: 0x0600067C RID: 1660 RVA: 0x00008744 File Offset: 0x00006944 public void SetFloatArray(int nameID, float[] values) { if (values == null) { throw new ArgumentNullException("values"); } if (values.Length == 0) { throw new ArgumentException("Zero-sized array is not allowed."); } this.SetFloatArrayImpl(nameID, values); } // Token: 0x0600067D RID: 1661 RVA: 0x00008774 File Offset: 0x00006974 public void SetVectorArray(string name, List values) { this.SetVectorArray(Shader.PropertyToID(name), values); } // Token: 0x0600067E RID: 1662 RVA: 0x00008784 File Offset: 0x00006984 public void SetVectorArray(int nameID, List values) { this.SetVectorArray(nameID, (Vector4[])MaterialPropertyBlock.ExtractArrayFromList(values)); } // Token: 0x0600067F RID: 1663 RVA: 0x0000879C File Offset: 0x0000699C public void SetVectorArray(string name, Vector4[] values) { this.SetVectorArray(Shader.PropertyToID(name), values); } // Token: 0x06000680 RID: 1664 RVA: 0x000087AC File Offset: 0x000069AC public void SetVectorArray(int nameID, Vector4[] values) { if (values == null) { throw new ArgumentNullException("values"); } if (values.Length == 0) { throw new ArgumentException("Zero-sized array is not allowed."); } this.SetVectorArrayImpl(nameID, values); } // Token: 0x06000681 RID: 1665 RVA: 0x000087DC File Offset: 0x000069DC public void SetMatrixArray(string name, List values) { this.SetMatrixArray(Shader.PropertyToID(name), values); } // Token: 0x06000682 RID: 1666 RVA: 0x000087EC File Offset: 0x000069EC public void SetMatrixArray(int nameID, List values) { this.SetMatrixArray(nameID, (Matrix4x4[])MaterialPropertyBlock.ExtractArrayFromList(values)); } // Token: 0x06000683 RID: 1667 RVA: 0x00008804 File Offset: 0x00006A04 public void SetMatrixArray(string name, Matrix4x4[] values) { this.SetMatrixArray(Shader.PropertyToID(name), values); } // Token: 0x06000684 RID: 1668 RVA: 0x00008814 File Offset: 0x00006A14 public void SetMatrixArray(int nameID, Matrix4x4[] values) { if (values == null) { throw new ArgumentNullException("values"); } if (values.Length == 0) { throw new ArgumentException("Zero-sized array is not allowed."); } this.SetMatrixArrayImpl(nameID, values); } // Token: 0x06000685 RID: 1669 RVA: 0x00008844 File Offset: 0x00006A44 public float GetFloat(string name) { return this.GetFloat(Shader.PropertyToID(name)); } // Token: 0x06000686 RID: 1670 RVA: 0x00008868 File Offset: 0x00006A68 public float GetFloat(int nameID) { return this.GetFloatImpl(nameID); } // Token: 0x06000687 RID: 1671 RVA: 0x00008884 File Offset: 0x00006A84 public Vector4 GetVector(string name) { return this.GetVector(Shader.PropertyToID(name)); } // Token: 0x06000688 RID: 1672 RVA: 0x000088A8 File Offset: 0x00006AA8 public Vector4 GetVector(int nameID) { return this.GetVectorImpl(nameID); } // Token: 0x06000689 RID: 1673 RVA: 0x000088C4 File Offset: 0x00006AC4 public Matrix4x4 GetMatrix(string name) { return this.GetMatrix(Shader.PropertyToID(name)); } // Token: 0x0600068A RID: 1674 RVA: 0x000088E8 File Offset: 0x00006AE8 public Matrix4x4 GetMatrix(int nameID) { return this.GetMatrixImpl(nameID); } // Token: 0x0600068B RID: 1675 RVA: 0x00008904 File Offset: 0x00006B04 public void GetFloatArray(string name, List values) { this.GetFloatArray(Shader.PropertyToID(name), values); } // Token: 0x0600068C RID: 1676 RVA: 0x00008914 File Offset: 0x00006B14 public void GetFloatArray(int nameID, List values) { if (values == null) { throw new ArgumentNullException("values"); } this.GetFloatArrayImplList(nameID, values); } // Token: 0x0600068D RID: 1677 RVA: 0x00008930 File Offset: 0x00006B30 public float[] GetFloatArray(string name) { return this.GetFloatArray(Shader.PropertyToID(name)); } // Token: 0x0600068E RID: 1678 RVA: 0x00008954 File Offset: 0x00006B54 public float[] GetFloatArray(int nameID) { return this.GetFloatArrayImpl(nameID); } // Token: 0x0600068F RID: 1679 RVA: 0x00008970 File Offset: 0x00006B70 public void GetVectorArray(string name, List values) { this.GetVectorArray(Shader.PropertyToID(name), values); } // Token: 0x06000690 RID: 1680 RVA: 0x00008980 File Offset: 0x00006B80 public void GetVectorArray(int nameID, List values) { if (values == null) { throw new ArgumentNullException("values"); } this.GetVectorArrayImplList(nameID, values); } // Token: 0x06000691 RID: 1681 RVA: 0x0000899C File Offset: 0x00006B9C public Vector4[] GetVectorArray(string name) { return this.GetVectorArray(Shader.PropertyToID(name)); } // Token: 0x06000692 RID: 1682 RVA: 0x000089C0 File Offset: 0x00006BC0 public Vector4[] GetVectorArray(int nameID) { return this.GetVectorArrayImpl(nameID); } // Token: 0x06000693 RID: 1683 RVA: 0x000089DC File Offset: 0x00006BDC public void GetMatrixArray(string name, List values) { this.GetMatrixArray(Shader.PropertyToID(name), values); } // Token: 0x06000694 RID: 1684 RVA: 0x000089EC File Offset: 0x00006BEC public void GetMatrixArray(int nameID, List values) { if (values == null) { throw new ArgumentNullException("values"); } this.GetMatrixArrayImplList(nameID, values); } // Token: 0x06000695 RID: 1685 RVA: 0x00008A08 File Offset: 0x00006C08 public Matrix4x4[] GetMatrixArray(string name) { return this.GetMatrixArray(Shader.PropertyToID(name)); } // Token: 0x06000696 RID: 1686 RVA: 0x00008A2C File Offset: 0x00006C2C public Matrix4x4[] GetMatrixArray(int nameID) { return this.GetMatrixArrayImpl(nameID); } // Token: 0x06000697 RID: 1687 RVA: 0x00008A48 File Offset: 0x00006C48 public Texture GetTexture(string name) { return this.GetTexture(Shader.PropertyToID(name)); } // Token: 0x06000698 RID: 1688 RVA: 0x00008A6C File Offset: 0x00006C6C public Texture GetTexture(int nameID) { return this.GetTextureImpl(nameID); } // Token: 0x06000699 RID: 1689 RVA: 0x00008A88 File Offset: 0x00006C88 [Obsolete("Use SetFloat instead (UnityUpgradable) -> SetFloat(*)", false)] public void AddFloat(string name, float value) { this.SetFloat(Shader.PropertyToID(name), value); } // Token: 0x0600069A RID: 1690 RVA: 0x00008A98 File Offset: 0x00006C98 [Obsolete("Use SetFloat instead (UnityUpgradable) -> SetFloat(*)", false)] public void AddFloat(int nameID, float value) { this.SetFloat(nameID, value); } // Token: 0x0600069B RID: 1691 RVA: 0x00008AA4 File Offset: 0x00006CA4 [Obsolete("Use SetVector instead (UnityUpgradable) -> SetVector(*)", false)] public void AddVector(string name, Vector4 value) { this.SetVector(Shader.PropertyToID(name), value); } // Token: 0x0600069C RID: 1692 RVA: 0x00008AB4 File Offset: 0x00006CB4 [Obsolete("Use SetVector instead (UnityUpgradable) -> SetVector(*)", false)] public void AddVector(int nameID, Vector4 value) { this.SetVector(nameID, value); } // Token: 0x0600069D RID: 1693 RVA: 0x00008AC0 File Offset: 0x00006CC0 [Obsolete("Use SetColor instead (UnityUpgradable) -> SetColor(*)", false)] public void AddColor(string name, Color value) { this.SetColor(Shader.PropertyToID(name), value); } // Token: 0x0600069E RID: 1694 RVA: 0x00008AD0 File Offset: 0x00006CD0 [Obsolete("Use SetColor instead (UnityUpgradable) -> SetColor(*)", false)] public void AddColor(int nameID, Color value) { this.SetColor(nameID, value); } // Token: 0x0600069F RID: 1695 RVA: 0x00008ADC File Offset: 0x00006CDC [Obsolete("Use SetMatrix instead (UnityUpgradable) -> SetMatrix(*)", false)] public void AddMatrix(string name, Matrix4x4 value) { this.SetMatrix(Shader.PropertyToID(name), value); } // Token: 0x060006A0 RID: 1696 RVA: 0x00008AEC File Offset: 0x00006CEC [Obsolete("Use SetMatrix instead (UnityUpgradable) -> SetMatrix(*)", false)] public void AddMatrix(int nameID, Matrix4x4 value) { this.SetMatrix(nameID, value); } // Token: 0x060006A1 RID: 1697 RVA: 0x00008AF8 File Offset: 0x00006CF8 [Obsolete("Use SetTexture instead (UnityUpgradable) -> SetTexture(*)", false)] public void AddTexture(string name, Texture value) { this.SetTexture(Shader.PropertyToID(name), value); } // Token: 0x060006A2 RID: 1698 RVA: 0x00008B08 File Offset: 0x00006D08 [Obsolete("Use SetTexture instead (UnityUpgradable) -> SetTexture(*)", false)] public void AddTexture(int nameID, Texture value) { this.SetTexture(nameID, value); } // Token: 0x0400006D RID: 109 internal IntPtr m_Ptr; } }