Commit Graph

29 Commits

Author SHA1 Message Date
Henrik Rydgård 77e894c64d Fix more D3D11 lifecycle problems. Removed some ComPtr that got in the way 2025-08-01 18:20:44 +02:00
Henrik Rydgård a5aac9c386 D3D11 stock objects: Remove unused items 2025-08-01 17:59:33 +02:00
Henrik Rydgård 62ff5ca81d Unit test fix part #1: Get more information 2025-06-24 15:20:50 +02:00
oltolm b09eb3dd23 use ComPtr for D3D11 2025-02-17 22:58:44 +01:00
Henrik Rydgård 096985f51f Provoking vertex (software transform): Simpler solution
Simply rotate each primitive in the index buffer to simulate a different provoking vertex.

Since at this point we have already generated a plain primitive index
buffer, it's easy to manipulate like this.

An even better solution would be to generate rotated index buffers
directly during decode, although that code is super critical and does
not need more complexity..

We could now also enable this for hardware transform but I'm leaving
that for later.
2024-07-17 14:40:52 +02:00
Henrik Rydgård e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård 22d353ec85 D3D11: Filter out useless compiler warning (about pow(-val, x)) 2024-04-09 17:38:58 +02:00
Henrik Rydgård 9bd8b11bf8 Implement shader depal for D3D11. 2022-09-11 13:41:17 +02:00
Henrik Rydgård 8efb40180e Make the hardware skinning code match 2020-11-01 19:58:50 +01:00
Henrik Rydgård c6f51bbc1e Add brute force shader generator tester. Tests D3D11 and Vulkan shaders.
Found a potential error with tesselation without normals already.
2020-10-21 23:20:15 +02:00
Henrik Rydgård 0e3a84b4a8 Move most GPU things to Common.
It works after the move, on Windows and Android at least.

Deletes the D3DX9 shader compiler loader, which was not used.
2020-10-04 23:39:02 +02:00
Henrik Rydgård ed88761ecc Merge ext/native/stringutil.cpp/h into Common/StringUtils.cpp/h. 2020-09-29 15:51:51 +02:00
Henrik Rydgård 0bf6bd9175 More Log.h cleanup. 2020-08-16 14:48:54 +02:00
Henrik Rydgård b43698a13d Remove most instances of base/logging.h from Common, Core, GPU, more 2020-08-15 19:08:44 +02:00
aliaspider 15c4406df7 add missing inclues. 2018-03-22 22:14:19 +01:00
Henrik Rydgard 61c6d83b6e D3D11: Fix creation of stock samplers to work on featurelevel9 GPUs 2017-03-05 12:40:09 +01:00
Henrik Rydgard 116edcb77a Take the D3D11 feature level into account when creating shaders. May help #9369 2017-03-05 12:31:33 +01:00
Henrik Rydgard 9d116505cf D3D11: Add a large amounts of asserts 2017-03-05 10:34:44 +01:00
Henrik Rydgard c219ae9e63 Further UWP fixes 2017-02-25 09:57:24 +01:00
Henrik Rydgard 731026c199 D3D11: Can now switch post shader at runtime, and won't crash if they fail to translate correctly. 2017-02-23 12:42:28 +01:00
Henrik Rydgard f1e015f577 Basic postshader translation to D3D11 works. On-the-fly switching seems broken though. 2017-02-23 12:42:28 +01:00
Henrik Rydgard 2fabe3e1c5 Fix a number of resource leaks, both D3D11-only and general.
Additionally, fix D3D11 BlitFramebuffer
2017-02-17 19:23:01 +01:00
Henrik Rydgard a8ee70f23d Import SPIRV-Cross. This will be used later to translate post-processing shaders to the various shader languages we use.
Eventually, this will make it possible to use post-processing with
Vulkan and D3D11. Probably not DX9, though maybe.

Not adding to Android build, there's some strangeness with STL.
2017-02-14 23:33:27 +01:00
Henrik Rydgård 6033b1ee05 D3D11: Some cleanup. Fix backface culling. Wipeout still looks weird... 2017-02-12 18:29:58 +01:00
Henrik Rydgård abbd6cb1d1 Fix DrawActiveTexture, now Buffered Rendering is starting to work 2017-02-12 11:20:55 +01:00
Henrik Rydgard f9b840dbfd More D3D11 progress 2017-02-10 00:01:56 +01:00
Henrik Rydgard 01f46e7a5d Make the first generated D3D11 shaders compile, fix various warnings 2017-02-09 15:04:21 +01:00
Henrik Rydgard 76587ec61c Further stuff. 2017-02-09 13:28:59 +01:00
Henrik Rydgard ba95e0f4d9 Initial stab at porting the DX9 backend to D3D11. Not working yet. 2017-02-09 13:28:40 +01:00