Exemple #1
0
        private static void ExtractGlobalMatrixArray(int name, List <Matrix4x4> values)
        {
            if (values == null)
            {
                throw new ArgumentNullException("values");
            }
            values.Clear();
            int globalMatrixArrayCountImpl = Shader.GetGlobalMatrixArrayCountImpl(name);

            if (globalMatrixArrayCountImpl > 0)
            {
                NoAllocHelpers.EnsureListElemCount <Matrix4x4>(values, globalMatrixArrayCountImpl);
                Shader.ExtractGlobalMatrixArrayImpl(name, (Matrix4x4[])NoAllocHelpers.ExtractArrayFromList(values));
            }
        }
Exemple #2
0
 public static Matrix4x4[] GetGlobalMatrixArray(int name)
 {
     return((Shader.GetGlobalMatrixArrayCountImpl(name) == 0) ? null : Shader.GetGlobalMatrixArrayImpl(name));
 }
Exemple #3
0
 public static Matrix4x4[] GetGlobalMatrixArray(int nameID)
 {
     return((Shader.GetGlobalMatrixArrayCountImpl(nameID) != 0) ? Shader.GetGlobalMatrixArrayImpl(nameID) : null);
 }