GPU Instancer:API Documentation

From GurBu Wiki
Revision as of 21:41, 3 May 2019 by GurBu Admin (talk | contribs) (Created page with "About | Features | Getting Started | Terminology | GPU_Instancer:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

About | Features | Getting Started | Terminology | Best Practices | F.A.Q. | API Documentation

All API methods and descriptions can be found in GPUInstancer/Scripts/API/GPUInstancerAPI.cs



public static void InitializeGPUInstancer(GPUInstancerManager manager, bool forceNew = true)

manager The manager that defines the prototypes you want to GPU instance.
forceNew If set to false will not regenerate buffers if already initialized before


Main GPU Instancer initialization Method. Generates the necessary GPUInstancer runtime data from predifined GPU Instancer prototypes that are registered in the manager, and generates all necessary GPU buffers for instancing. Use this as the final step after you setup a GPU Instancer manager and all its prototypes. Note that you can also use this to re-initialize the GPU Instancer prototypes that are registered in the manager at runtime.