Пример #1
0
 /// <summary>
 /// Use this method to initialize buffers for the given prototype and set the buffer data later with UpdateVisibilityBuffer API methods. Please note that you will
 /// need to provide a positive integer buffer size to initialize the buffers successfully.
 /// </summary>
 /// <param name="prefabManager">The GPUI Prefab Manager that the prefab prototype is defined on</param>
 /// <param name="prototype">GPUI Prefab Prototype</param>
 /// <param name="bufferSize">Size of the buffer to allocate in GPU memory</param>
 /// <param name="instanceCount">(Optional) Initial instance count to render. Can also be set later with SetInstanceCount API method</param>
 public static void InitializePrototype(GPUInstancerPrefabManager prefabManager, GPUInstancerPrefabPrototype prototype, int bufferSize, int instanceCount = 0)
 {
     GPUInstancerUtility.InitializePrototype(prefabManager, prototype, bufferSize, instanceCount);
 }