# Veldrid (opens new window)
Veldrid is a low-level, portable graphics library for .NET.
# Samples
A sample can be found here (opens new window).
# Installing
class Game : BaseGame
{
private readonly VeldridDeviceSet deviceSet;
public Game()
{
// Create the device set for veldrid
this.deviceSet = new VeldridDeviceSet();
}
protected override void Draw(Veldrid.CommandList cl)
{
float elapsedTime = 1f / 60;
// Pull the input snapshot from Veldrid
var lastInputSnapshot = this.Window.PumpEvents();
// Pass the input snapshot to the device set
this.deviceSet.UpdateSnapshot(lastInputSnapshot);
this.deviceSet.Update(elapsedTime);
}
}