Coder Social home page Coder Social logo

nfginola / dx11-tech Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 268.33 MB

D3D11 - Architecture Playground - Deferred, Parallell Split Shadow Maps (PSSM) and Sample Distribution Shadow Maps (SDSM)

License: MIT License

C++ 94.55% HLSL 4.87% C 0.58%

dx11-tech's Introduction

dx11-tech

DX11 project which had the aim of implementing graphics techniques but turned into an architectural playground :) This project will likely be a base for any other DX11 related projects I have in the future.

There are likely bugs or corner cases not handled, which will be fixed if they ever cause an issue later.

There are also things which need to be refactored, but have been ignored since they work for now.

Features:

  • Graphics Device API:

    • Simplified API which mimics Vulkan/DX12 (but still utilizes the slot-binding model)
    • Safe strongly typed uint64_t handle-based resources using generational counters
    • Automated
      • View creation
      • Elimination of redundant re-binds
      • Read-Write and Read resource unbinds
      • MSAA resolves
    • Hot shader recompilation for fast iteration and experimentation
  • Graphics API:

    • Render Queue
      • Bucket-based with int keys
      • Allows for sorting graphics commands in any order (e.g per material, etc.)
    • Reverse Z-depth
  • Techniques:

    • Deferred Rendering

    • Parallel Split Shadow Maps (PSSM)

      • Utilizing geometry shader instancing
    • Sample Distribution Shadow Maps (SDSM)

      • Parallel Depth Reduction on Compute Shader
      • Depth min/max CPU read-back for frustum subdivision
      • Normal CSM workflow afterwards
    • To-add:

      • Percentage Closer Filtering
      • Normal maps
      • SSAO
      • PBR
  • Miscellaneous:

    • CPU Profiler (Frame-based and Scoped)
    • GPU Profiler (Frame-based and Scoped)
    • GPU Annotator for clustering commands in a graphics debugger (e.g RenderDoc)
    • ImGUI Docking
    • Assimp Loader
  • References:

Gallery:
Scene
Alt text
Exposed graphics primitives
Alt text
Setting up depth-only pass example:
Alt text
Scoped frame profiler (CPU and GPU) and API usage Alt text
PSSM (Uniform + Logarithmic Split Scheme with Lambda = 0.5) Alt text
SDSM (Logarithmic Split Scheme) Alt text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.