Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metal C++ Examples

⚠️ Note :- These examples are kind of mixed with c++ and objective-c and some use apple NS::Window and most of them have glfw usage ,there could be some confusions in the various examples and some examples might be not working/looking as per it seems.This repo can be used for reference , understanding , learning etc. You are free to point out the problems,fixing,contributing,way of approaching a new solution etc .

ImagePi7_Gif (1)Pi7_Gif ScreenRecording2026-07-11at1 49 41PM-ezgif com-video-to-gif-converter Metal C++ Examples Screenshot 2026-09-13 at 5 22 07 PM

Getting Started


Download everything all at once

OR

Switch to the branch you want to explore and run or download a specific example subfolder using : DownGit

There more than 30+ code sample

 make clean && make && make run

A collection of Metal C++ examples demonstrating graphics programming concepts ranging from rendering a simple triangle to advanced rendering techniques such as render passes, instancing, HDR, MSAA, and model loading .

Useful links


Image based lighting for Prebaked cubemaps Cubemap preview , BRDF_LUT , irradiance specular cubemap downloads etc

PBR material maker PBR Material

Raylib shaders Raylib shader examples

Prerequisites


  • macOS
  • Apple Silicon or Intel Mac with Metal support (Metal 4 examples will only work for Apple Silicon )
  • Apple Command Line Tools
  • Metal Toolchain
  • Make

Required Brew Libraries


  • Assimp
 brew install assimp
  • GLM
 brew install glm

Credits & References


Contributors

Languages