Commit Graph

15 Commits

Author SHA1 Message Date
CakeLancelot
d5b58d96da dx2cg: Implement RECT, CUBE texture types
Also tried to implement 3D texture type, but that will likely require a few other instructions to get working - namely texldp and dcl_volume.
2024-02-13 03:18:19 -06:00
CakeLancelot
06869164a1 dx2cg: Implement mov_sat instruction
Basically just mov but clamp the result.
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx9-graphics-reference-asm-ps-instructions-modifiers-ps-2-0#saturate
2024-02-13 03:18:19 -06:00
CakeLancelot
99c80c9c7b dx2cg: Allow usage as Python module
e.g.
from dx2cg.swapper import process_shader
cg_shader = process_shader(text)
2024-02-13 01:40:07 -06:00
gsemaj
7b750db9f9 Update README 2022-08-11 15:56:07 -04:00
gsemaj
aa564926a0 Fix CameraPos translation 2022-08-11 15:46:58 -04:00
gsemaj
2496f04987 Add semantic to f2a struct 2022-08-11 13:21:33 -04:00
gsemaj
916857edc3 Unity 3 fixes 2022-08-11 12:20:51 -04:00
gsemaj
3791e889c8 Add support for multiple subprograms 2022-08-11 11:53:38 -04:00
gsemaj
d0e67d55c9 Standalone support for basic fragment shaders 2022-08-11 04:06:03 -04:00
gsemaj
869d5b1976 Add support for SetTexture 2022-08-10 21:03:56 -04:00
gsemaj
8725dd1e4e Entry points and arg fix 2022-08-10 21:01:51 -04:00
gsemaj
8fbe59e5a1 Fix rcp bug 2022-08-10 20:09:59 -04:00
gsemaj
a53fb21621 Add .gitignore 2022-08-10 20:09:22 -04:00
gsemaj
9dd5db86eb Update README 2022-08-10 20:06:02 -04:00
gsemaj
4ace5f065f Add dx2cg 2022-08-10 19:47:13 -04:00