/// <summary> /// Specifies a variation buffer for a GPU Instancer prototype that is defined in the prefab's shader. And sets the variation values for the given array. /// </summary> /// <typeparam name="T">The type of variation buffer. Must be defined in the instance prototype's shader</typeparam> /// <param name="manager">The manager that defines the prototypes you want to GPU instance.</param> /// <param name="prototype">The GPU Instancer prototype to define variations.</param> /// <param name="bufferName">The name of the variation buffer in the prototype's shader.</param> /// <param name="variationArray">The array that stores the variation information.</param> public static void DefineAndAddVariationFromArray <T>(GPUInstancerPrefabManager manager, GPUInstancerPrefabPrototype prototype, string bufferName, T[] variationArray) { manager.DefineAndAddVariationFromArray <T>(prototype, bufferName, variationArray); }
/// <summary> /// Specifies a variation buffer for a GPU Instancer prototype that is defined in the prefab's shader. And sets the variation values for the given array. /// </summary> /// <typeparam name="T">The type of variation buffer. Must be defined in the instance prototype's shader</typeparam> /// <param name="manager">The manager that defines the prototypes you want to GPU instance.</param> /// <param name="prototype">The GPU Instancer prototype to define variations.</param> /// <param name="bufferName">The name of the variation buffer in the prototype's shader.</param> /// <param name="variationArray">The array that stores the variation information.</param> public static PrefabVariationData <T> DefineAndAddVariationFromArray <T>(GPUInstancerPrefabManager manager, GPUInstancerPrefabPrototype prototype, string bufferName, T[] variationArray) { return(manager.DefineAndAddVariationFromArray <T>(prototype, bufferName, variationArray)); }