public virtual void Activate() { EnsureNotDisposed(); if (ProgramHandle == 0) { _log.Warning($"Refusing to activate invalid shader."); return; } SDL_gpu.GPU_ActivateShaderProgram(ProgramHandle, ref Block); }
public static void Deactivate() => SDL_gpu.GPU_ActivateShaderProgram(0, IntPtr.Zero);