Граф коммитов

50 Коммитов

Автор SHA1 Сообщение Дата
Rodrigo Braz Monteiro 30a77c78d2
Introduce option to inherit combined sampler bindings (#58) 2021-02-02 16:50:14 -07:00
Minmin Gong 9f4dbeb643 [GLSL] Fix the regression of legacy GLSL compatibility due to the changes in SPIRV-Cross
Related work item: Github #42
2020-09-25 18:24:10 -07:00
Minmin Gong e82b303f9a Use the Blob in object, not pointer
It reduces the chance of memory leak.
2020-09-25 15:06:30 -07:00
Minmin Gong a8580b8166 Remove the tailing '\0' from the disassemble results 2020-09-24 23:57:21 -07:00
sunnypchen 063c0ea6c3
Dxil shader reflection feature (#45)
* Dxil shader reflection feature

Co-authored-by: sunnypchen <chenpeng_19890924@126.com>
Co-authored-by: Minmin Gong <mgong@microsoft.com>
2020-09-24 18:18:31 -07:00
Minmin Gong 110266b0ef [External] Update DXC and explicitly use the static version of SPIRV-Tools 2020-09-24 15:35:11 -07:00
Minmin Gong e0785d987a [External] Update SPIRV-Cross and its dependencies to fix an OpPhi translation issue 2020-09-24 00:43:00 -07:00
Minmin Gong cfe64907a5 External: Updated DirectXShaderCompiler 2020-05-14 22:15:22 -07:00
Minmin Gong e0a8f7f04a [CodingStandard] Turn on Cpp11BracedListStyle in clang-format
Related work item: Github #24
2020-04-30 23:55:18 -07:00
Minmin Gong c0bf229665 [External] Update external libraries 2020-04-25 21:09:18 -07:00
Minmin Gong 3abff09adc [Link] Enable to compile HLSLs to Dxil modules, and link them
Related work item: Github #10
2020-04-23 21:12:31 -07:00
Minmin Gong f75d8c75d5 [GLSL] Better legacy GLSL compatibility and update expected files
Related work item: Github #42
2020-04-11 12:41:36 -07:00
Nils Daumann 971319ad0c
Added support for macro definitions. (#54) 2020-04-08 23:24:11 -07:00
Minmin Gong 75117b3e4a [Engineering] Refactor on cmake files, split large files to smaller ones 2020-03-07 18:33:23 -08:00
Minmin Gong c6f7879497 [External] Updated some external libraries 2020-03-07 15:17:17 -08:00
Jorge Cantón b514328d9e Add shift resource bindings in Vulkan (#50)
* Added Options parameters to C# wrapper
* Added Vulkan Shift resource binding options
* Fixed issue packMatricesInRowMajor is inverted
2019-09-24 20:02:42 -07:00
Minmin Gong d1c81f555e [External] Updated DirectXShaderCompiler and SPIRV-Cross to fix nointerpolation problem 2019-09-23 11:14:52 -07:00
Jorge Cantón e2b0ad5e50 Add options parameters to C# wrapper (#48) 2019-09-15 16:59:17 -07:00
Minmin Gong 7f765609e5 Enable to build x86, arm, and arm64 binaries as well
When cross compiling arm or arm64 configurations, a built x64 or x86 clang-tblgen and llvm-tblgen are required.

Related work item: Github #15
2019-07-14 00:16:04 -07:00
Minmin Gong 73b4941aaf Separate Msl target into Msl_macOS and Msl_iOS, fix the resource bindings
Related work item: Github #44
2019-04-22 23:20:05 -07:00
Minmin Gong e7a38cd399 [External] Updated DirectXShaderCompiler and SPIRV-Cross to fix the LoD problem
Related work item: Github #40
2019-04-21 19:14:06 -07:00
Minmin Gong 6ecb32708b [External] Updated DirectXShaderCompiler to fix the half data type problem
Related work item: Github #40
2019-03-16 11:36:12 -07:00
Minmin Gong 9a2f26fc43 Add 2 tests about half data type, and update the externals
Related work item: Github #40
2019-03-01 22:21:06 -08:00
Minmin Gong 32c44461b1 More robust on file loading
Related work item: #39
2019-02-28 22:55:06 -08:00
Minmin Gong 744b9cd517 [External] Updated external libraries
Related work item: Github #38
2019-02-24 20:45:49 -08:00
Minmin Gong 1c5402e5c2 Fix the uninitialized members in source and target which is causing memory problems
Related work item: Github #36
2019-02-12 21:54:45 -08:00
Minmin Gong 852d52179b Copy the blobs from binary targets to outputs
Related work item: Github #36
2019-02-10 21:02:29 -08:00
Minmin Gong 50e27738c4 Enable to compile a shader to multiple targets in one call
Related work item: Github #34
2019-02-09 17:29:35 -08:00
Minmin Gong c45f09a6d8 Add options for tuning the compiling
Related work item: Github #35
2019-02-05 20:07:28 -08:00
Minmin Gong e725a6399f Remove STL containers from the interface
STL containers are causing some problems when caller doesn't have _ITERATOR_DEBUG_LEVEL=0, or have operator new overridden, or have a different runtime. Switch to C-style pointers and Blob can solve this problem.

Related work item: Github #33
2019-02-04 22:03:27 -08:00
Minmin Gong 82f339c917 Fix a bug when include an empty file
1. Fix the include problems
2. Add tests about including

Related work item: Github #32
2019-01-31 00:08:44 -08:00
Minmin Gong 47cfbc2532 Return error when include file is not located
Related work item: Github #30
2019-01-30 09:29:06 -08:00
Carter Bray a3ac01e7ab Fix issues with converting ShaderConductor::MacroDefine (#29)
* Fix issues with converting ShaderConductor::MacroDefine

* Fix unsafe access to internal wstring data which can be invalidated if
the wstring is moved due to small-string optimization where the string
data is stored internally instead of allocated.
* Fix logical inversion when converting defines with no value.

* Update unit tests for macro definition fix

Note the constant in gl_Position assignment which now matches the value
of FIXED_VERTEX_RADIUS defined in ShaderConductorTest.cpp(243).
2019-01-30 00:45:50 -08:00
Jorge Cantón 3860bfff93 Dxil disassembly feature (#27)
Added DXIL Disassembly feature
2019-01-30 00:44:58 -08:00
Jorge Cantón 72cf2c6c0c Add the ability to disassemble SPIR-V
- Added new Disassemble method
- Updated CSharp wrapper
- Implemented CSharp wrapper free resources
- Check disassemble spirv code
- Linked Spirv-Tools
2018-12-19 23:22:04 -08:00
Minmin Gong aebd3e66f1 Make sure dxcompiler get copied every time 2018-12-09 19:02:59 -08:00
Minmin Gong d45b274e42 On Linux, strip debug information on release build
In gcc8 build, dxcompiler.so is reduced from ~34.5MB to ~29.3MB.

Related work item: Github #19
2018-12-06 21:35:30 -08:00
Jorge Cantón 66f15380e9 CSharpWrapper (#18)
Added ShaderConductorWrapper and test project
2018-12-05 12:02:31 -08:00
Minmin Gong 1bdc200b75 [Linux][macOS] Copy the dxcompiler binary to lib directory 2018-12-01 17:06:28 -08:00
Minmin Gong 62cadb7dc5 Support building by vc140
Related work item: Github #12
2018-11-27 18:46:37 -08:00
Minmin Gong e611a0f02b [External] Add SPIRV-Headers and SPIRV-Tools as external dependencies
Related work item: Github #14
2018-11-21 21:26:24 -08:00
Minmin Gong c893be1977 Refactor on cmake files 2018-11-17 21:25:13 -08:00
Minmin Gong c73face89b Fix some code formatting problems 2018-11-17 15:03:08 -08:00
Minmin Gong d0143a8cf8 [CI][Linux] Supports Clang on Linux
Related work item: Github #13
2018-11-16 19:53:52 -08:00
Minmin Gong fef360fc3c Turn off GS, HS, DS when converting to HLSL
Related work item: Github #4, #5
2018-11-15 23:14:18 -08:00
Minmin Gong 7e9d845ec2 [CI][Linux][macOS] Linux and macOS support
1. Replace WRL::ComPtr with CComPtr,
2. Cross platform UUID,
3. Add compiler options for GCC and Clang,
4. Add travis rules,

Related work items: Github #2, #3
2018-11-14 22:53:48 -08:00
Minmin Gong bc374b16e4 [HLSL] Update SPIR-V to latest master to fix the error when converting a pixel shader to HLSL SM3.
Related work item: Github #6
2018-11-12 22:58:17 -08:00
Minmin Gong 144a607772 [MSL][HLSL] Limit some shader stages on MSL and HLSL targets
MSL and HLSL SM3 doesn't have GS, HLSL SM4 doesn't have HS or DS, etc.

Related work item: Github #9
2018-11-10 00:33:40 -08:00
Minmin Gong 68b28a9688 [Engineering] Update build script to add Ninja support.
1. Enable to build with Ninja, expecting 45% less building time,
2. Fix a couple of string overflow issues.

Related work item: Github #7
2018-11-09 09:31:36 -08:00
Minmin Gong dada492762 Check in initial code 2018-11-07 23:29:45 -08:00