• Stars
    star
    821
  • Rank 55,549 (Top 2 %)
  • Language
    C++
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 1 year ago

Reviews

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

Repository Details

A simple framework for rapid prototyping on Vulkan or Direct3D 12

Cauldron

A simple framework for rapid prototyping on Vulkan or DirectX12.

Cauldron was developed by AMD and is used internally to develop prototypes, demos and SDK samples.

Cauldron is compiled as a static library. To see it in action check projects below.

Projects that feature Cauldron

Cauldron Features

  • glTF 2.0 File loader
    • Animation for cameras, objects, skeletons and lights
    • Skinning
      • Baking skinning into buffers (DX12 only)
    • PBR Materials
      • Metallic-Roughness
      • Specular-Glossiness (KHR_materials_pbrSpecularGlossiness)
    • Lighting
      • KHR_lights_punctual extension
        • Point
        • Directional
        • Spot Lights w/ Shadows (up to 4)
      • Image-based Lighting (IBL) CubeMaps
    • Shadow techniques
      • shadow maps (PCF)
      • shadow masks (DX12 only)
  • Configurable GBuffer, supported techniques:
    • Full forward
    • Motion vectors
    • Normals
    • Depth
    • Specular-roughness
    • Diffuse-alpha
  • Postprocessing
    • TAA
    • Bloom
    • HDR/Tonemapping
  • Texture Loaders for DDS (including the BCn formats), JPEG and PNG formats
    • MIP Map generation for powers-of-two textures
  • In-app user interface using Dear ImGui
  • Rendering Resource Management
    • Command Buffer Ring
    • Timestamp Queries
    • Memory Heap Manager (Linear Allocator)
    • Static buffers for VB/IB/CB with suballocation support
    • Dynamic buffers for VB/IB/CB using a ring buffer
  • Debug Rendering
    • Wireframe Bounding Boxes
    • Light Frustums
  • Window management & swapchain creation
    • Fullscreen/Windowed Modes
  • Support for DXC/SM6.x
  • Shader Binary & PSO caching
  • FreeSync ™️ 2 HDR support
  • Multithreading loading & creation of resources
    • Textures & MIP map generation
    • Shader compilation
    • Pipeline creation
  • VK extensions can be enabled from the app side
  • Benchmarking

Directory Structure

  • build : Build scripts & generated solution files/folders
  • libs : Libraries
    • AGS : AMD helper library for querying GPU info
    • VulkanMemoryAllocator : Helper library for memory management with Vulkan applications
    • d3d12x : The D3D12 helper library
    • dxc : DirectX Shader Compiler
    • imgui : Graphical User Interface library
    • json : Library for adding JSON support w/ C++ syntax
    • stb : stb_image.h and stb_image_write.h from stb
  • media : Builtin textures and other data
  • src : Source code files
    • common : Common code used by both DX12/VK
    • DX12 : DirectX12 backend
    • VK : Vulkan backend

Note: more info on the rendering backends can be found in the Readme of their respective folders.

Build

Prerequisites

How-to-Build

  • Run the GenerateSolutions.bat file in the build directory.
  • build/VK and build/DX12 folders will contain the Cauldron_*.sln files
  • Simply build the solution file for the desired API
  • build/DX12/src/DX12/ directory will contain the compiled static library Framework_DX12.lib for DX12 (similar for VK) under the selected configuration (Debug/Release) folder.

Framework Architecture

Every feature in Cauldron has been implemented in a single file using C++11.

The main features could be grouped in 4 categories:

  • Resource managers & loaders
    • Texture loaders - can load DDS, PNG, JPG and any other file supported by the WIC subsystem. It can also create image views.
    • StaticBufferPool - holds vertices and indices for static geometry. It creates a huge buffer and then suballocates chunks from it in a linear fashion. Chunks cannot be freed.
    • DynamicBufferRing - holds constant buffers and also vertices and indices. Same as before but allocation happens in a ring fashion.
    • ResourceViewHeaps - holds the Descriptor Sets.
    • UploadHeap - system memory buffer that holds the texture data to be uploaded to video memory via DMA
    • CommandListRing - allocates a number of command buffers from a ring buffer and returns a ready-to-use command buffer.
    • Device - all the device related code.
  • Renderers
    • GLTF* - loads and renders the model using a certain technique
    • PostProcPS/PS - draws a 2D quad using a custom shader, used by the post processing passes.
    • ImGUI - code for driving the ImGUI
    • Widgets
      • Wireframe - draws a wireframe cube (used for rendering bounding boxes and light/camera frustums)
      • Axis - draws the coordinate axis of a matrix
  • Vulkan specific helpers & setup code
    • InstanceVK - creates an instance and enables the validation layer
    • Extension helpers
      • ExtDebugMarkers - sets up the debug markers
      • ExtFp16 - enables FP16 extension
      • ExtFreeSync2 - enables FreeSync extension
      • ExtValidation - enables the validation layer
  • Commons & OS-specific code
    • Swapchain - handles resizing, fullscreen/windowed modes, etc.
    • FrameworkWindows - creates a window, processes windows message pump

Cauldron was originally written using DX12 and later on ported to Vulkan using the same structure. This would make Cauldron ideal for learning Vulkan if you're coming from DirectX12, or vice versa.

Known Issues

Please bear in mind that in order to keep Cauldron simple we are only covering the most frequently used features (for now).

Please feel free to open an issue for bug reports.

Contribution

Cauldron should be very easy to extend, should you want to contribute to Cauldron, you can open a pull request.

3rd-Party Open Source Projects Used

More Repositories

1

VulkanMemoryAllocator

Easy to integrate Vulkan memory allocation library
C
2,214
star
2

RadeonRays_SDK

Radeon Rays is ray intersection acceleration library for hardware and software multiplatforms using CPU and GPU
C++
1,032
star
3

V-EZ

C
839
star
4

D3D12MemoryAllocator

Easy to integrate memory allocation library for Direct3D 12
C++
740
star
5

FidelityFX-SDK

The main repository for the FidelityFX SDK.
C++
685
star
6

AMF

The Advanced Media Framework (AMF) SDK provides developers with optimal access to AMD devices for multimedia processing
C++
516
star
7

RadeonProRenderBlenderAddon

This hardware-agnostic rendering plug-in for Blender uses accurate ray-tracing technology to produce images and animations of your scenes, and provides real-time interactive rendering and continuous adjustment of effects.
Python
481
star
8

Capsaicin

AMD ARR team rendering framework
C
363
star
9

BlenderUSDHydraAddon

This add-on allows you to assemble and compose USD data with Blender data and render it all using various renderers via Hydra.
Python
350
star
10

RadeonProRender-Baikal

C++
334
star
11

RenderPipelineShaders

Render Pipeline Shaders SDK
C++
268
star
12

AGS_SDK

AMD GPU Services (AGS) library and samples
C++
232
star
13

RadeonProRenderSDK

AMD Radeon™ ProRender is a powerful physically-based path traced rendering engine that enables creative professionals to produce stunningly photorealistic images.
C
220
star
14

RadeonProRenderUSD

This plug-in allows GPU or CPU accelerated viewport rendering on all OpenCL 1.2 hardware for the open source USD and Hydra system. You can build this plug-in as a USDView plug-in or a Houdini plug-in.
C++
212
star
15

Orochi

C++
197
star
16

MxGPU-Virtualization

C
176
star
17

Radeon-ReLive-VR

157
star
18

OCL-SDK

140
star
19

HelloD3D12

Introductory DirectX 12 sample
C
138
star
20

TAN

AMD TrueAudio Next is a software development kit for GPU accelerated audio signal processing
C++
133
star
21

brotli_g_sdk

Brotli-G SDK provides an improved lossless compression ratio with GPU decompression support than the standard Brotli compression algorithm maintained by the IETF (also known as RFC7932)
C++
132
star
22

ForwardPlus11

AMD Forward+ sample based on DirectX 11
C++
131
star
23

display-library

AMD Display Library SDK
HTML
115
star
24

HelloVulkan

Introductory Vulkan sample
C
115
star
25

glTFSample

A simple demo to show off the capabilities of the Cauldron framework
C++
112
star
26

GPUParticles11

AMD GPU particles sample based on DirectX 11
C++
105
star
27

LiquidVR

The LiquidVR™ SDK is a platform based on DirectX 11 designed to simplify and optimize VR development
C++
102
star
28

HIPRT

C++
91
star
29

RadeonML

C
81
star
30

TiledLighting11

AMD compute-based tiled lighting sample based on DirectX 11
C++
71
star
31

Tessellation

OpenGL sample that demonstrates terrain tessellation on the GPU
C++
61
star
32

GameEngineIntegrations

Information about example integrations of GPUOpen technology into game engines
55
star
33

cpu-core-counts

A sample demonstrating how to correctly detect physical core and logical processor counts on AMD processors.
C++
53
star
34

HIPRTSDK

C
53
star
35

RadeonImageFilter

C++
49
star
36

RadeonProRenderMayaPlugin

This hardware-agnostic rendering plug-in for Maya uses accurate ray-tracing technology to produce images and animations of your scenes, and provides real-time interactive rendering and continuous adjustment of effects.
C++
46
star
37

SSAA11

AMD supersample anti-aliasing (SSAA) sample based on DirectX 11
C++
41
star
38

RapidFire_SDK

RapidFire SDK - interface for cloud gaming and virtualization (VDI)
C++
36
star
39

MLAA11

AMD morphological anti-aliasing (MLAA) sample based on DirectX 11
C++
35
star
40

SilhouetteTessellation11

AMD tessellation sample based on DirectX 11
C++
34
star
41

SPARSEtextures

OpenGL sample demonstrating the GL_AMD_sparse_texture extension introduced by the AMD FirePro W and Radeon HD 7000 series
C++
30
star
42

ADLX

AMD Device Library eXtra
HTML
29
star
43

SeparableFilter11

AMD separable filter sample based on DirectX 11
C++
27
star
44

CrossfireAPI11

AMD Crossfire API sample for DirectX 11
C++
26
star
45

DepthBoundsTest11

AMD depth bounds test DirectX 11 driver extension sample
C++
23
star
46

RenderStudioKit

C++
23
star
47

RadeonProRenderUE

C++
21
star
48

Vulkan-Samples

based on Khronos Vulkan-Samples
C++
19
star
49

DOPPEngine

C++
18
star
50

Framelock

OpenGL sample that demonstrates how to enable Framelock in an application
C++
18
star
51

FreesyncPremiumProSample

A simple demo to show Freesync Premium Pro integration into DX12 and Vulkan API.
C++
18
star
52

DirectGMA_P2P

Samples showing FIrePro DirectGMA features in OpenGL and OpenCL
C++
17
star
53

VkMBCNT

Vulkan mbcnt sample that shows how to use the AMD_shader_ballot extension and mbcnt to perform a fast reduction within a wavefront
C++
16
star
54

Cauldron-Media

A selection of media files needed by Cauldron samples
16
star
55

RadeonProRenderANARI

C++
15
star
56

UnityIntegrations

Examples that demonstrate game integration with some of the libraries and SDKs available on GPUOpen.
C
15
star
57

OutOfOrderRasterization

Vulkan sample built on the Anvil framework
15
star
58

Barycentrics11

Barycentric coordinates GCN shader extension sample for DirectX 11
HLSL
14
star
59

DOPP

C++
14
star
60

Barycentrics12

Barycentric coordinates GCN shader extension sample for DirectX 12
C++
12
star
61

DirectStorageSample

Demonstrating the advantages of using DirectStorage over standard file I/O asset loading. Includes the API and changes required to make such a pipeline work.
C++
11
star
62

RadeonProRenderMaxPlugin

C++
10
star
63

VkD3DDeviceMapping

Simple example to show how to map devices between Vulkan and Direct3D
C++
8
star
64

WorkGraphComputeRasterizer

A compute/workgraph workload running inside the Cauldron framework
C++
8
star
65

RadeonProRender-Tests

7
star
66

WorkGraphsHelloWorkGraphs

C++
5
star
67

WorkGraphsDirectX-Graphics-Samples

A fork of https://github.com/microsoft/DirectX-Graphics-Samples modified to include a sample for Work Graphs
C++
5
star
68

RadeonProRenderMayaUSD

C++
2
star
69

RadeonProRenderSharedComponents

C++
2
star
70

RadeonProRenderSDKKernels

2
star
71

CapsaicinTestMedia

Capsaicin Framework test media assets
1
star