private static void ExtractGlobalVectorArray(int name, List <Vector4> values) { if (values == null) { throw new ArgumentNullException("values"); } values.Clear(); int globalVectorArrayCountImpl = Shader.GetGlobalVectorArrayCountImpl(name); if (globalVectorArrayCountImpl > 0) { NoAllocHelpers.EnsureListElemCount <Vector4>(values, globalVectorArrayCountImpl); Shader.ExtractGlobalVectorArrayImpl(name, (Vector4[])NoAllocHelpers.ExtractArrayFromList(values)); } }