Commit Graph

12 Commits

Author SHA1 Message Date
03b4c071a2 Properly cast argument types when adding abs to shader functions 2024-02-28 17:03:37 +01:00
07c9a8a660 Re-add native matrix multiplication 2024-02-21 14:36:35 +01:00
3aa48a3f99 Modify NaN propagation for multiplication 2024-02-21 14:36:35 +01:00
db89e54109 Add mat3x4 and mat4x3 indexing functions 2024-02-21 14:12:12 +01:00
04be6f40d0 Fix pow domain on some drivers 2024-02-21 14:11:37 +01:00
7d97baffcd Match math function behavior to DX9 implementation 2024-02-21 14:11:37 +01:00
6e93c1f624 Consolidate USE_GLES define usage. 2024-01-19 11:57:06 +01:00
484c3579d7 Fix a memory leak in HLSLMacro class due to use of std::string.
The HLSLMacro struct is manually malloc'd, not using new/delete, so the std::string destructor is never called on the instance stored in the class.

Fixed by using a char* allocated by HLSLTree, which will then properly take care of deleting it after parsing is complete.
2024-01-19 11:57:06 +01:00
7cb79fe5b5 Improve robustness and fix leaking of hlslparser's Array memory management. 2024-01-19 11:57:06 +01:00
ce0e5853b2 More work on shader stuff, warp/comp shaders now compile properly.
Fixed a transpile issue with a hack used by some preset authors to set a texture sampler to a different filter/wrap mode, removing the "sampler_state" block entirely now as there's no GLSL equivalent (samplers are solely configured on the application side).

Also consolidated a few vertex types into RenderItem and fixed a few old-school effects like DarkenCenter.
2023-09-11 10:19:47 +02:00
e7094aa190 Remove "Pipeline" classes and temp fix all compilation issues. 2023-09-11 10:19:46 +02:00
b9f1c16f58 Move third-party libraries to "vendor" dir. 2023-03-03 14:30:24 +01:00