Commit Graph

18 Commits

Author SHA1 Message Date
Skyth
1a53a3b463 Rename the RHI. 2024-11-30 18:20:56 +03:00
Skyth (Asilkan)
d36aa26bac Specialization constants, reverse Z and async PSO implementation. (#9)
* Specialization constant implementation for Vulkan.

* Implement DXIL library linking.

* Implement proper reverse Z & fix motion blur flicker.

* Mirage API mapping.

* Initial work for async PSO.

* Further async PSO work.

* Set pipeline names.

* Handle special layers writing depth.

* Handle bones in shadow pipeline.

* Fix additive mode setting wrong pipeline field.

* Pass models to compilation threads through shared pointers.

* Safety improvements.

* Allow DXIL linking to happen in parallel.

* Display more debug information.

* Queue unique models for compilation immediately.

* Put async PSO debug printing behind a macro.

* Kick off terrain models to pipeline compilation thread the moment they are made.

* Hook a different function to do waiting in.

* Fix pipelines getting dropped.

* Account for ConstTexCoord.

* Fix async PSO accounting for alpha to coverage even when MSAA is off.

* Remove "has bone" specialization constant.

* Sky shader compilation & more debugging helpers.

* Assign names to shaders during loading.

* Fix string symbol definitions.

* Print description of recently compiled render thread pipelines.

* Switch to an enum library that doesn't murder IntelliSense.

* Precompile pipelines for object icons.

* Skip fur pipelines.

* Skip printing info for pipelines compiled during loading.

* Precompile pipelines for Sonic's mouth, motion blur, and forced transparent objects.

* Precompile planar reflection shaders.

* Precompile sparkle shaders in loading screens.

* Precompile fur shader.

* Refactor model traversing to enqueue every single compilation to worker threads.

* Dynamically create pipeline threads depending on hardware concurrency.

* Fix MSAA depth resolve not accounting for reverse Z.

* Integrate smol-v.

* Implement PSO caching.

* Update ShaderRecomp & remove unused function.
2024-11-29 23:30:48 +03:00
Skyth
05e09ba7e2 Implement ImGui. 2024-11-09 21:47:50 +03:00
Skyth
0962560ec9 Add triangle list fallback path for triangle fans. 2024-11-08 22:03:26 +03:00
Skyth
182b5bebc2 Hold a pointer to provided shader blob instead of cloning it in D3D12. 2024-11-06 13:33:15 +03:00
Darío
7d04ed057c Add Vsync configuration support to the RHI. (#1) 2024-10-30 11:32:30 +03:00
Skyth
b3b8d1657a Move main thread buffer copy to graphics command list. 2024-10-27 20:43:01 +03:00
Skyth
5676591618 Refactor render commands to execute asynchronously. 2024-10-27 00:02:47 +03:00
Skyth
9b70e1034a Implement alpha to coverage. 2024-10-24 14:57:23 +03:00
Skyth
5578e84069 Refactor barrier usage & fix more validation errors. 2024-10-21 17:36:44 +03:00
Skyth
02964750ad Add D3D12 Agility SDK & implement triangle fans. 2024-10-20 20:44:25 +03:00
Skyth
66c20e73c9 Implement movie rendering & fix some validation errors. 2024-10-20 18:47:26 +03:00
Skyth
ecc1098ddc Discard render targets before first use. 2024-10-20 15:11:15 +03:00
Skyth
8e8ce8b42f Use vcpkg for dependencies. 2024-10-17 01:04:21 +03:00
Skyth
c5e195fef3 Recreate internal framebuffers when swap chain gets resized. 2024-10-08 13:10:13 +03:00
Skyth
b876766848 Enable buffer device address feature. 2024-10-07 22:22:05 +03:00
Skyth
c07b827a5e Implement Vulkan. 2024-10-07 20:50:48 +03:00
Skyth
24830e1326 Initial graphics implementation. 2024-10-07 00:25:06 +03:00