public static void Dispose() { if (BufferLayout != null) BufferLayout.Dispose(); if (Shader != null) Shader.Dispose(); }