Veldrid Samples
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.
Getting Started
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.
Textured Cube
This sample renders a textured 3D Cube, which rotates in the center of the screen.
Instancing
This sample renders a large number of instanced 3D meshes, orbiting around a central textured sphere.
Offscreen
This sample renders planar reflection using a sampled offscreen Framebuffer.
Animated Mesh
This sample renders an animated mesh.
Compute Particles
This sample simulates a large number of particles in a compute shader. Afterwards, it renders their positions using instanced points.
Compute Texture
This sample procedurally generates texture data in a compute shader every frame. Afterwards, it renders the texture data as a full-screen quad.