Skip to content

NCrashed/gpipe-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These are refined examples from GPipe tutorial adapted to GHC 9.8.1.

The tested setup on Windows:

  • ghcup 0.1.22.0
  • GHC 9.8.2
  • cabal 3.10.3.0
  • hls (optional) 2.7.0.0

Examples

Triangle

The simplest hello-world in the world of computer graphics:

cabal run gpipe-triangle

Triangle example

Resize

Showcase how to use shader environment to pass around window size to enable dynamic resizing:

cabal run gpipe-resize

Resize example

Uniform

Showcase how to use uniform buffers to pass data inside shader:

cabal run gpipe-uniform

Uniform example

Sampling

Showcase how to make procedural textures and sample from them:

cabal run gpipe-sampling

Sampling example

Offscreen

Showcase how to render to texture and use it in the following render pass:

cabal run gpipe-offscreen

Sampling example

Raycast

My own example that demonstrates very basic raycasting technique.

cabal run gpipe-raycasting

Raycasting example

About

GPipe examples adapted to the recent GHC version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published