This repository contains sample projects for Veldrid, a low-level graphics and compute library for .NET Many of the samples are intended to demonstrate how specific features in the library can be used.
Running the Samples
To build and run the samples, the .NET Core SDK is required. All of the sample projects can be run on .NET Core on any supported platform. Simply run:
dotnet run -p <project-file>
Some of the samples can also be run on iOS and Android. Veldrid.Samples.Mobile.sln is a solution file containing all of the mobile projects. Veldrid.Samples.sln contains only the desktop projects.
This is a simple introduction to Veldrid, which renders a simple 4-color quad in the center of the screen.
Check out the Tutorial Page for a step-by-step walkthrough of this project, with an explanation of each portion.
This sample renders a textured 3D Cube, which rotates in the center of the screen.
This sample renders a large number of instanced 3D meshes, orbiting around a central textured sphere.
This sample renders planar reflection using a sampled offscreen Framebuffer.
This sample renders an animated mesh.
This sample simulates a large number of particles in a compute shader. Afterwards, it renders their positions using instanced points.
This sample procedurally generates texture data in a compute shader every frame. Afterwards, it renders the texture data as a full-screen quad.