• Stars
    star
    119
  • Rank 297,930 (Top 6 %)
  • Language
    C#
  • Created about 7 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sample projects for Veldrid

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.

GettingStarted

Textured Cube

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

Textured Cube

Instancing

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

Instancing

Offscreen

This sample renders planar reflection using a sampled offscreen Framebuffer.

Offscreen

Animated Mesh

This sample renders an animated mesh.

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 Particles

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.

Compute Texture

More Repositories

1

veldrid

A low-level, portable graphics library for .NET.
C#
2,136
star
2

ImGui.NET

An ImGui wrapper for .NET.
C#
1,428
star
3

ShaderGen

Proof-of-concept library for generating HLSL, GLSL, and Metal shader code from C#,
C#
489
star
4

CrazyCore

Repository containing the game assets and code for Crazy Core
C#
380
star
5

ge

A general-purpose 3D game engine with editor, built with .NET Core
C#
313
star
6

veldrid-raytracer

A C# ray tracer, capable of running on both the CPU and GPU.
C#
198
star
7

vk

Low-level Vulkan bindings for .NET.
C#
175
star
8

nativelibraryloader

A .NET Standard library for loading native shared libraries and retrieving function pointers.
C#
90
star
9

veldrid-spirv

SPIR-V shader translation for Veldrid, using SPIRV-Cross
C#
43
star
10

ImGui.NET-nativebuild

Windows/macOS/Linux/iOS/Android build automation for cimgui. Used to package up ImGui.NET.
Batchfile
22
star
11

synthapp

Experimental audio sequencer with .NET Core
C#
13
star
12

coreui

A libui wrapper for .NET Core
C#
12
star
13

assemblybrowser

A GUI-based CIL browser running on .NET Core
C#
12
star
14

ecs

Trying out an experimental ECS with real ECS principles
C#
9
star
15

Veldrid.TextRendering

Text rendering with Veldrid and SharpFont
C#
9
star
16

veldrid-docs

Documentation site for Veldrid
7
star
17

Vx

Experimenting with an easy-to-use immediate mode 3D renderer
C#
7
star
18

corebuild

A minimal configuration for creating a .NET Core console application using a regular MSBuild csproj
7
star
19

Veldrid.TinyDemo

A minimal demo project using Veldrid
C#
6
star
20

Snake

Snake
C#
6
star
21

bootstrap

Helper script for bootstrapping .NET Core on new platforms
Shell
5
star
22

BoxGame

A prototype game engine and small sample game using OpenTK and BEPU Physics, running atop CoreCLR.
C#
4
star
23

ApiTools

Repo for some of the tools used in the corefx build, like GenFacades and ApiCompat
C#
3
star
24

Veldrid.Collections

A set of experimental, low-level collections.
C#
3
star
25

coretemplate

A simple template for building .NET Core libraries and applications using MSBuild
C#
3
star
26

mos6502

MOS Technology 6502 CPU emulator
C#
3
star
27

dota2-api-viewer

A very primitive console application for querying some of the Dota 2 Web APIs.
C#
2
star
28

NetworkInformationApp

A small app that prints stuff retrieved from the System.Network.NetworkInformation library.
C#
2
star
29

Veldrid-Legacy

Repository containing old branches of Veldrid
C#
2
star
30

VeldridNSViewExample

A basic example showing how to use Veldrid to render into an NSView.
C#
1
star