GitXplorerGitXplorer
m

veldrid-samples

public
122 stars
48 forks
35 issues

Commits

List of commits on branch master.
Unverified
0ac284ddc8f62d8d75c8eae88cc1824c320b1caf

Update dependencies

mmellinoe committed 4 years ago
Unverified
549b691867c5220ee87c433e98a2513e646b76c9

Handle backend differences in GettingStarted.

mmellinoe committed 4 years ago
Unverified
21b81c72aa67d3726ce44b1e87089b460a381fab

Bump default versions of dependencies in Directory.Build.props.

mmellinoe committed 6 years ago
Unverified
bbaa7cc0f74700050c3bcc13f663fcde41f5b370

Bump Veldrid dependency to 4.6.0, SPIRV to 1.0.8.

mmellinoe committed 6 years ago
Unverified
6627ed066af8fe3cbee6109a696b7f8f81d1c3d0

Fix typo in Android TextureCube MainActivity.

mmellinoe committed 6 years ago
Unverified
d6913232fcb26d8e50b17fcc69cc6f61c6ccf2ba

[GettingStarted] Move shader variables to the top.

mmellinoe committed 6 years ago

README

The README file for this repository.

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