Skip to content

aznarepse/veldrid-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

GettingStarted

This sample renders a textured 3D Cube, which rotates in the center of the screen.

Textured Cube

This sample renders a large number of instanced 3D meshes, orbiting around a central textured sphere.

Instancing

This sample renders planar reflection using a sampled offscreen Framebuffer.

Offscreen

This sample renders an animated mesh.

Animated Mesh

This sample simulates a large number of particles in a compute shader. Afterwards, it renders their positions using instanced points.

Compute Particles

This sample procedurally generates texture data in a compute shader every frame. Afterwards, it renders the texture data as a full-screen quad.

Compute Texture

Releases

No releases published

Packages

No packages published

Languages

  • C# 93.9%
  • GLSL 6.1%