/// <summary> /// Called when drawing the scene /// </summary> /// <param name="imageIndex"></param> /// <param name="start"></param> /// <param name="finished"></param> public override void OnDraw(Semaphore start, int imageIndex, out Semaphore finished) { // Clear screen ClearEffect.Draw(start, Graphics.SwapchainAttachmentImages[imageIndex]); // Draw triangle SpriteEffect.Draw(ClearEffect.FinishedSemaphore, Graphics.SwapchainAttachmentImages[imageIndex]); // We are finished when the triangle is drawn finished = SpriteEffect.FinishedSemaphore; }
public virtual void Draw(Semaphore start, int imageIndex, out Semaphore finished) { SpriteEffect.Draw(start, Graphics.SwapchainAttachmentImages[imageIndex]); finished = SpriteEffect.FinishedSemaphore; }