Commit Graph

  • c294b0b94f Work towards trim support trimming ds5678 2024-05-21 02:50:50 -04:00
  • ebeea20843 Allow manual triggering of Github Action master Lanyi 2022-05-24 09:12:08 +02:00
  • 5a4deec672 Update README.md Lanyi 2022-02-17 23:32:52 +01:00
  • c951198837 Set up Github Actions Lanyi 2022-02-17 23:16:25 +01:00
  • 77d0d36c02 upgrade to .NET 5 lanyi 2021-07-23 13:58:30 +02:00
  • f3a6b4f2cb fix sincos lanyi 2021-07-22 18:00:23 +02:00
  • f368384da2 fix texXXlod lanyi 2021-07-22 16:52:54 +02:00
  • 77bcf1215b More meaningful shader names lanyi 2021-07-22 16:40:43 +02:00
  • 7d30021ce7 fix fxlc operand's scalar/vector handling lanyi 2021-07-22 15:26:51 +02:00
  • dfab560d63 minor style change lanyi 2021-05-30 18:43:33 +02:00
  • 3ff820264f Experimental SM1 shaders support, made possible by jonwil's effort lanyi 2021-05-30 08:02:27 +02:00
  • f661774e6c Better handling of constant literals lanyi 2021-05-26 01:05:37 +02:00
  • 9a454b17e0 Prevent conflicting register assignments in effect lanyi 2021-05-26 00:08:01 +02:00
  • 8e5205203d Fixed wrong decompilation of lrp instruction in dx9 HlslWriter lanyi 2021-05-25 23:07:48 +02:00
  • 30edd6e330 Added the missing destinatinon modifier in dx9 HlslWriter lanyi 2021-05-25 23:06:32 +02:00
  • 0d3993424c Implement lit instruction lanyi 2021-05-24 21:46:43 +02:00
  • 6e56258f6a added a simple help message in DXDecompilerCmd lanyi 2021-05-24 21:07:32 +02:00
  • 6a473820f4 Gracefully handle unsupported sm1 shaders lanyi 2021-05-24 21:07:06 +02:00
  • 798fc790d9 Handle empty pres comment token lanyi 2021-05-24 21:06:21 +02:00
  • 03715067f5 Removed structure declaration unification as they could somtimes be misleading lanyi 2021-05-24 16:53:59 +02:00
  • e8cf5e33eb Removed comments in dx9 structs again as they could be misleading lanyi 2021-05-24 01:03:01 +02:00
  • 8e00485201 Added a "constants' default values with padding" so fxl VM could work correctly lanyi 2021-05-24 00:48:19 +02:00
  • c57fe5f0c4 fix textureCUBE in Parameter.GetTypeName lanyi 2021-05-24 00:37:17 +02:00
  • 48fd35c816 handle null blobs gracefully lanyi 2021-05-24 00:29:42 +02:00
  • f16ce07f50 Read correct number of dx9 constant default values lanyi 2021-05-24 00:26:43 +02:00
  • 14390bdcbc make sure index register only uses one component lanyi 2021-05-23 23:05:51 +02:00
  • d3feebde0e fix temp variables in fxlc decompilation lanyi 2021-05-23 22:59:12 +02:00
  • d02e13f7dc fix compile target in dx9 effect lanyi 2021-05-23 22:46:11 +02:00
  • 1578bb816e Handle multiple output registers in expression shaders lanyi 2021-05-23 22:44:12 +02:00
  • 18d27cdcf8 Prefer blobs instead of literal values in dx9 effect lanyi 2021-05-23 22:03:51 +02:00
  • 5c8d472c61 Correct handling of nrm instruction lanyi 2021-05-23 21:51:41 +02:00
  • da0bca35c9 Fix output declaration handling in dx9 lanyi 2021-05-23 21:51:17 +02:00
  • 2f7313c5aa fix operand formatting in DX9 lanyi 2021-05-23 21:50:56 +02:00
  • 8025c6352a Let HLSL writer write disassambly in comments lanyi 2021-05-23 20:34:42 +02:00
  • 9c13fec7ee Fix bug in dx9 shader input structure checking lanyi 2021-05-23 20:34:15 +02:00
  • 305f3b1d0b Automatically truncate uv swizzles in texture operations lanyi 2021-05-23 20:09:44 +02:00
  • 25ed8eb643 Better support of input declaration (with write masks) in DX9 shaders lanyi 2021-05-23 20:09:20 +02:00
  • 2932e74fb1 Guess tex operation name by looking at sampler type lanyi 2021-05-23 14:47:18 +02:00
  • 94fa2d1433 Fix DX9 tests' issues with shader profile / effects lanyi 2021-05-23 01:49:32 +02:00
  • 592866bfb8 Let expression return scalar it seems that it's always a scalar shader? lanyi 2021-05-23 01:49:03 +02:00
  • dec7863bf4 fixed rsq instruction in DX9's Fxlc lanyi 2021-05-23 01:48:32 +02:00
  • 88ca7fdafc shader profile / version mapping lanyi 2021-05-23 01:48:10 +02:00
  • 79232e0a63 better handling of relative addressing in dx9 lanyi 2021-05-23 01:45:15 +02:00
  • 3e5b87ac40 Added the missing entry point name in DX9 tests lanyi 2021-05-23 00:50:06 +02:00
  • 336e5144af fix conflicting names between input / output register names in DX9 lanyi 2021-05-23 00:49:32 +02:00
  • 4b738ff7b5 Handle ambiguities between vs's addr and ps's texcoord in DX9 lanyi 2021-05-23 00:48:52 +02:00
  • 68bfb015a7 Handle rare cases where DX9 constant might start with a dollar sign lanyi 2021-05-23 00:47:28 +02:00
  • 13259a84ce Fixed pixal shader declaration semantic in DX9 lanyi 2021-05-23 00:46:42 +02:00
  • 0d605d8ca5 Added the missing semicolon in DX9 shader constant declarations lanyi 2021-05-22 23:38:16 +02:00
  • 170297f7ce Proper handling of write masks in DX9 shader decompilation lanyi 2021-05-22 22:42:46 +02:00
  • 16d0ef2cd4 Fixed the wrong register number in ctab override lanyi 2021-05-22 17:53:22 +02:00
  • 7301daa80c Fixed incorrect typename when decompiling effect parameters lanyi 2021-05-22 17:52:45 +02:00
  • 85968ac357 Added the missing compile statement in shader array initialization lanyi 2021-05-22 17:52:05 +02:00
  • 3eb9e9fb47 Added a ToString method to SourceOperand So it can be passed directly to string.Format lanyi 2021-05-22 17:51:05 +02:00
  • d441de8cf2 Fixed the missing constructors in annotations lanyi 2021-05-22 17:50:13 +02:00
  • 4c59abd9b0 Merge effect shaders' input / output declaration when possible lanyi 2021-05-22 17:16:25 +02:00
  • 0a51204262 Merge common constant declarations in DX9 Effect lanyi 2021-05-22 14:24:20 +02:00
  • 7b16acefd8 Refactored decompilation of constant declarations lanyi 2021-05-22 14:20:21 +02:00
  • f9d031a9ff Fixed tests and implemented more instructions in Dx9 Fxlc lanyi 2021-05-22 12:06:46 +02:00
  • 5ca2a352a7 Fix effect decompilation output lanyi 2021-05-22 11:19:44 +02:00
  • a5f70378be Fix typo lanyi 2021-05-22 00:09:04 +02:00
  • 9c4321345f Support address register in FX9 decompilation lanyi 2021-05-21 17:57:49 +02:00
  • 8d1369436e Some kind of relative addressing support in FX9 decompilation lanyi 2021-05-21 17:30:46 +02:00
  • d0dcf2e3ad force invariant culture lanyi 2021-05-21 17:22:16 +02:00
  • a768b50cdd Support referencing preshader-processed variables in main shader lanyi 2021-05-21 01:12:08 +02:00
  • 9afca30cc5 Various misc changes / fixes mainly for correct handling of write masks lanyi 2021-05-21 00:50:45 +02:00
  • d5fc02e81f Support preshader decompilation; Refactored DX9 Fxlc lanyi 2021-05-21 00:49:43 +02:00
  • a2d0e1d439 Support more instructions (ddx, ddy) lanyi 2021-05-20 18:07:01 +02:00
  • 607bc007ae Proper support of expression decompilation which contains descriptive names instead of registers lanyi 2021-05-20 18:05:02 +02:00
  • b5348d73c3 let FxlcOperand support both raw / descriptive name lanyi 2021-05-20 18:02:00 +02:00
  • b5b3688d62 Fixed failed test cases in DX9's AsmMatchesFxc Now the disassembler can execute the index shader to choose the default shader array element when writing out technique passes lanyi 2021-05-20 16:43:43 +02:00
  • d379a071cb unified constant name handling in DX9 shader lanyi 2021-05-20 15:55:02 +02:00
  • 5f8159e851 Fixed missing write mask in DX9 HlslWriter lanyi 2021-05-18 14:05:35 +02:00
  • e7c32662bb Fix namespace error from refactor spacehamster 2021-02-22 15:01:23 +11:00
  • 64991033d7 Fix ConstantDeclaration spelling spacehamster 2021-02-22 13:19:55 +11:00
  • 459e59c050 Refactored Ctab classes spacehamster 2021-02-22 13:16:31 +11:00
  • 92af89df2f Add TODO about restructuring DX9 token and instruction classes spacehamster 2021-02-22 12:45:06 +11:00
  • 21912358c8 Added missing fxc9 dependency: d3dx9_43.dll spacehamster 2021-02-22 12:34:03 +11:00
  • 07ef5e7302 Change CompileShaderFixture to compile DX9 shaders in addition to DXBC shaders spacehamster 2021-02-22 12:18:31 +11:00
  • c72fa2db5c Merge pull request #6 from lanyizi/disasm-relative-addressing spacehamster 2021-02-22 11:52:27 +11:00
  • 1acfca53f8 Merge pull request #4 from lanyizi/master spacehamster 2021-02-22 11:52:02 +11:00
  • cccff2694e added a todo remainder lanyi 2021-02-22 01:36:24 +01:00
  • 63084c5db9 Fixed DX9 disassembly's issues with relative addressing mode Fixed some unit test cases in DX9Tests.AsmMatchesFxc, which contains code that uses relative addressing, such as ShadersDX9/Sdk/Direct3D/IrradianceVolume/PRT.fx lanyi 2021-02-21 22:14:43 +01:00
  • 5fe8c2f1bb In DX9, Extend GetRegisterTypeByOffset to support objects Now sampler arrays can be correctly handled lanyi 2021-02-21 20:00:34 +01:00
  • 51e4bc68b3 Support the non-ast version lanyi 2021-02-21 07:46:01 +01:00
  • 18d630d795 Source code indent size lanyi 2021-02-21 06:32:17 +01:00
  • 3fe0c0f898 improved handling of constant declarations lanyi 2021-02-21 06:28:36 +01:00
  • 7e15e03a17 Added Fxlc cmp instruction opcode. Added FxlcToken ToString overload spacehamster 2021-02-21 19:59:54 +11:00
  • 00f9924e44 Removed unused FloatFormatter refrence spacehamster 2021-02-21 19:51:28 +11:00
  • 148fb7f766 Merge pull request #5 from sweetgiorni/peek-typos spacehamster 2021-02-21 19:48:25 +11:00
  • a83d296242 Fixed Sampler Array Test spacehamster 2021-02-21 19:21:47 +11:00
  • 3fdd9b1895 Rename Peak functions to Peek Alex Sweet 2021-02-21 00:13:20 -08:00
  • 086d7adf0f Fix dx9 effect shader tests not being copied to output directory Fix dx9 effect shader test missing output semantic spacehamster 2021-02-21 18:21:27 +11:00
  • 3b4cd75fd6 Add license file spacehamster 2021-02-20 16:37:50 +11:00
  • a1ee055274 Merge pull request #3 from lanyizi/master spacehamster 2021-02-20 13:03:30 +11:00
  • eb5a068392 Support shader array variable lanyi 2021-02-20 01:56:19 +01:00
  • fbd36dfed9 Fixed some indentations lanyi 2021-02-20 01:56:01 +01:00
  • 70cc3ad8e4 Support more opcodes in HlslWriter of dx9 lanyi 2021-02-20 01:55:44 +01:00
  • b4eda292cf Fixed DestinationMask in DX9 lanyi 2021-02-20 01:54:01 +01:00
  • 98ca852021 Handle more inconsistencies between shader model 3.0 / 2.0 lanyi 2021-02-20 01:53:52 +01:00