Skip to content
Open

Dx12 #230

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
a82d58a
Add PlatformUtils for platform-specific functions
ajmd17 May 1, 2026
4b0c625
DX12 - flickering but stuff is rendering on the screen!
ajmd17 May 1, 2026
3e46944
DX12 fixes - use one index allocator, was causing overlapping / missi…
ajmd17 May 1, 2026
2f58f1b
Vulkan fixes
ajmd17 May 1, 2026
b2cf1fd
For vulkan, we need to transpose the matrices when using ByteAddressB…
ajmd17 May 1, 2026
5d7435a
Making things work for DX12 viewport
ajmd17 May 2, 2026
86229eb
Move win32 AppContext/ApplicationWindow types to platform/windows
ajmd17 May 2, 2026
6e5c5e3
Fixing ray picking for dx12
ajmd17 May 2, 2026
9c8a23b
Shadows work on vulkan again after coordinate system changes
ajmd17 May 2, 2026
de815c6
Fix SSR, skinning etc for new viewport style
ajmd17 May 2, 2026
c46b587
Fixing superfulous barriers for DX12 deferred pass
ajmd17 May 2, 2026
8ab8892
Buffer class refactoring, fix swapchain color format issue Dx12
ajmd17 May 3, 2026
98b599e
RawBuffer changes
ajmd17 May 3, 2026
78866ba
g_renderInterface -> RI
ajmd17 May 3, 2026
e4cd25f
Removing allocator ptr from container types
ajmd17 May 3, 2026
cdcfc79
Fixing fallout from allcoator changes
ajmd17 May 3, 2026
8b08f56
Fix crash caused by copying beyond image array layers
ajmd17 May 3, 2026
6dd24c6
Fixed memory leak caused by GenerateMipmaps allocating lots of transient
ajmd17 May 3, 2026
1ee3641
Fix assertion failure that happens when render thread and sim/main
ajmd17 May 3, 2026
edf998d
Debugging clustered shading issues with DX12.
ajmd17 May 3, 2026
0b6a62c
Fixing resize issue with tile assignment not updating to use new window
ajmd17 May 3, 2026
4810072
Fixing shaders for dx layout. Particles still having issues.
ajmd17 May 4, 2026
cf65682
Fix particles for dx layout
ajmd17 May 4, 2026
94bc229
Fixes for DX12 clustered shading. Now, StructuredBuffer needs stride …
ajmd17 May 4, 2026
a1c9ec3
Remove scriptable methods from input handlers to improve performance
ajmd17 May 4, 2026
abd7a84
EditorCamera improvements
ajmd17 May 4, 2026
65a5301
Add timeline semaphores to Vulkan
ajmd17 May 4, 2026
5a84cc6
Fix VK_WHOLE_SIZE + dynamic offset vulkan validation error.
ajmd17 May 4, 2026
5981dcb
Uncomment out point light shadow line in DeferredDirect.hlsl
ajmd17 May 4, 2026
cad94d2
Fixes and updates
emd22 May 5, 2026
645f7e7
Fix excessive beep sounds when pressing any key on macOS. [AI usage:
ajmd17 May 5, 2026
492f5ad
ADd testbed model
ajmd17 May 5, 2026
bd24b15
UIConsole no longer default focused. Add cube to test
ajmd17 May 5, 2026
e9b22e7
Changes to ComputeVisiblity -- use RWByteAddressBuffer
ajmd17 May 5, 2026
c9cd896
Adding depth prepass
ajmd17 May 4, 2026
491b279
Add proper depth compare for prepass
ajmd17 May 4, 2026
92e0486
Fix obj model loading for left handedness.
ajmd17 May 4, 2026
94322c4
Fix CalculateNormals() for left handedness
ajmd17 May 5, 2026
17b944d
Working on depth prepass/occlusion culling issues (not getting written
ajmd17 May 5, 2026
02cf339
Fixing mem leaks with moltenvk keeping imageviews and images around
ajmd17 May 5, 2026
e4ef31f
Fix occlusion culling: make renderproxy's world aabb more strict - use
ajmd17 May 5, 2026
f8f73ec
HighDPI work
ajmd17 May 5, 2026
427b3dc
Fix TAA - Jitter was updating too late and being overwritten. Move
ajmd17 May 5, 2026
1a9b2ea
Working on fixing shutdown hang
ajmd17 May 6, 2026
e1d2795
Remove XAppContext, XApplicationWindow for non-matching platforms.
ajmd17 May 6, 2026
6c85810
Remove stray HYP_DISABLE_OPTIMIZATION
ajmd17 May 6, 2026
02bf39f
Fixing hang on close
ajmd17 May 7, 2026
1ff3dfb
Deletion queue changes
ajmd17 May 7, 2026
6446599
Fixing crash on close
ajmd17 May 7, 2026
d7b3629
Refactoring (getting rid of some `Init` and `InitObject`s)
ajmd17 May 7, 2026
ee435fa
More fixes
ajmd17 May 7, 2026
24f6bd1
Add gpu selection to DX12 render interface.
ajmd17 May 7, 2026
1ac60c6
Fixing android build
ajmd17 May 7, 2026
95ffb15
Changing shader precompilation to allow cross compilation
ajmd17 May 7, 2026
98ee2e2
WIP
ajmd17 May 7, 2026
3ed79f8
WIP2
ajmd17 May 7, 2026
2006c42
Changing DX12 get uav/src helpers around to take buffer type + size r…
ajmd17 May 7, 2026
8e6df00
Removing glsl stuff from shader compiler
ajmd17 May 7, 2026
1fdaca4
Refactor (GONE WRONG!!!)
ajmd17 May 7, 2026
b12f142
Change shader compiler platform/api defs
ajmd17 May 8, 2026
a9891c4
Temp
ajmd17 May 8, 2026
55c8e1a
Depth prepass fixes (had too much duplicate rendering, now it will ch…
ajmd17 May 8, 2026
befc932
Fix Depth prepass being applied to unrelated passes.
ajmd17 May 8, 2026
e3c2017
RenderCollection -> RendererMain
ajmd17 May 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ Source/Generated/**/*

Packages/SampleGame/**/*

Data/Models/Testbed/**/*
Data/Models/Sponza/**/*
Data/Models/NewSponza/**/*
Data/Models/lostempire/**/*
Expand Down
25 changes: 15 additions & 10 deletions Config/EngineConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"Enabled": false
},
"HBAO": {
"Radius": 1.500000,
"Power": 2.500000,
"Radius": 1.5,
"Power": 2.5,
"UseTemporalBlending": false,
"Enabled": true
},
Expand All @@ -19,16 +19,17 @@
"RayTracedGI": false,
"RayTracingEnabled": true,
"IndirectRendering": true,
"DepthPrepass": true,
"ParallelCollection": true,
"SSR": {
"Enabled": true,
"Quality": 2,
"RoughnessScattering": false,
"ConeTracing": true,
"RayStep": 1.500000,
"RayStep": 1.5,
"NumIterations": 64,
"EyeFade": [0.990000, 0.995000],
"ScreenEdgeFade": [0.990000, 0.995000],
"EyeFade": [0.99, 0.995],
"ScreenEdgeFade": [0.99, 0.995],
"ResolutionScale": 1
},
"EnvGrid": {
Expand All @@ -49,10 +50,11 @@
"AO": false
},
"Vulkan": {
"DebugLayers": true
"DebugLayers": false,
"TimelineSemaphores": true
},
"RayTracing": {
"Enabled": false,
"Enabled": true,
"Reflections": {
"Enabled": false
},
Expand All @@ -66,10 +68,13 @@
},
"Editor": {
"Camera": {
"MoveSensitivity": 1,
"LookSensitivity": 1
"MovementSpeed": 10,
"LookSensitivity": 50
}
},
"Threads": {
"NumForegroundWorkers": 3
},
"System": {
"SelectedGpu": {
"Index": 1
Expand All @@ -80,4 +85,4 @@
"NumSamples": 1,
"MaxTexelsPerFrame": 262144
}
}
}
4 changes: 2 additions & 2 deletions Config/GlobalConfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"App": {
"Name": "DefaultGame",
"Args": "-ResX=1920 -ResY=1080 -Profile=true -TraceURL=http://localhost:8000/trace",
"Args": "-ResX=1920 -ResY=1080 -Profile=false -HighDPI=true -TraceURL=http://localhost:8000/trace",
"Cache": {
"BaseDirectory": "Cache",
"PageSize": 268435456
Expand All @@ -10,4 +10,4 @@
"Logging": {
"Verbose": false
}
}
}
Binary file added Data/Models/testbed/carpet1-ue/carpet1-Height.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Data/Models/testbed/carpet1-ue/carpet1-albedo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Data/Models/testbed/carpet1-ue/carpet1-ao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
258 changes: 258 additions & 0 deletions Data/Models/testbed/testbed.mtl
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
# Blender MTL File: 'testbed.blend'
# Material Count: 25

newmtl white
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 3

newmtl Material.002
Ns 506.250000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 3

newmtl Material.003
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 3

newmtl Material.004
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.750000 0.750000 0.750000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 3

newmtl Material.005
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 3

newmtl Material.006
Ns 43.642096
Ka 1.000000 1.000000 1.000000
Kd 0.839168 1.000000 0.793228
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl blue
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.000000 0.022015 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.009
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.000000 0.360966
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.010
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.023105 0.800000 0.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.011
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.000000 0.001264
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.012
Ns 21.026737
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.013
Ns 21.026737
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.014
Ns 21.026737
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.015
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Kd 0.000000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.016
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.250000 0.000000 1.000000
Ks 0.750000 0.750000 0.750000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.017
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.000000 0.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.018
Ns 506.250000
Ka 1.000000 1.000000 1.000000
Kd 0.000000 1.000000 0.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.019
Ns 900.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 0.000000 0.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.024
Ns 900.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 3

newmtl Material.025
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.026
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.027
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.028
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

newmtl Material.029
Ns 0.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000

map_kD mahogfloor_basecolor.png
map_bump mahogfloor_normal.png
map_nS mahogfloor_roughness.png
map_ao mahogfloor_AO.png
map_height mahogfloor_Height.png
Ni 1.450000
d 1.000000
illum 2

newmtl Material.030
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.000000 0.022015 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
Loading