Commit Graph

1129 Commits

Author SHA1 Message Date
Hans-Kristian Arntzen
fae64f032d Correctly resolve constant expressions for WorkGroupSize. 2017-09-28 12:34:48 +02:00
Hans-Kristian Arntzen
0e4ed4102b Only declare with specialization constant when in Vulkan semantics. 2017-09-28 12:24:04 +02:00
Hans-Kristian Arntzen
86eb874568 Implement specialization constants for work group sizes. 2017-09-28 11:33:30 +02:00
Hans-Kristian Arntzen
fd20b3f093 Merge pull request #289 from Wotan/master
Fix compilation with clang
2017-09-28 09:44:54 +02:00
Geoffroy Aubey
3a0b20fd71 Add compile options and compile defines to spirv-cross target. 2017-09-28 00:19:01 +02:00
Hans-Kristian Arntzen
ceefae5584 Support mixed constant composites. 2017-09-27 16:10:29 +02:00
Hans-Kristian Arntzen
5e1d6fb3ce Refactor constant construction. 2017-09-27 15:16:33 +02:00
Hans-Kristian Arntzen
d387ce99e8 Merge pull request #288 from KhronosGroup/fix-285
Fix case when Phi variable is a loop variable.
2017-09-25 10:30:27 +02:00
Hans-Kristian Arntzen
9175363839 Fix typo. 2017-09-25 10:16:45 +02:00
Hans-Kristian Arntzen
3339fd4e87 Fix case when Phi variable is a loop variable.
Need to flush variable to static expression rather than a variable.
2017-09-25 10:15:17 +02:00
Hans-Kristian Arntzen
860f8970e5 Merge pull request #286 from rossy/hlsl-atan2
Fix HLSL atan2() argument order
2017-09-25 09:07:10 +02:00
James Ross-Gowan
8805d08b31 Fix HLSL atan2() argument order
HLSL uses atan2(y, x) to represent the arctangent y/x, just like GLSL.

https://msdn.microsoft.com/en-us/library/windows/desktop/bb509575.aspx
2017-09-24 02:45:33 +10:00
Hans-Kristian Arntzen
7170864159 Merge pull request #284 from KhronosGroup/fix-283
Implement texture query APIs in HLSL
2017-09-20 15:11:33 +02:00
Hans-Kristian Arntzen
9aa42a87af Just emit textureSize variants we actually need. 2017-09-20 10:31:56 +02:00
Hans-Kristian Arntzen
1bc5b70752 Add exhaustive image query to HLSL.
Need to strip this down somehow ...
2017-09-20 10:00:13 +02:00
Hans-Kristian Arntzen
7c58f15928 Run format_all.sh. 2017-09-19 16:09:19 +02:00
Hans-Kristian Arntzen
7064c54820 Various fixes to texture/image query in GLSL. 2017-09-19 16:08:25 +02:00
Hans-Kristian Arntzen
68274c27da Merge pull request #282 from KhronosGroup/fix-281
Remove some dead code.
2017-09-16 10:28:56 +02:00
Hans-Kristian Arntzen
89bb31ac51 Remove some dead code. 2017-09-15 16:30:04 +02:00
Hans-Kristian Arntzen
41429901e8 Merge pull request #280 from rossy/sm-50-gather
Fix texture GatherRed/Green/etc. methods for HLSL SM 5.0
2017-09-12 08:48:29 +02:00
James Ross-Gowan
02e6be7288 Fix texture GatherRed/Green/etc. methods for SM 5.0
Unlike GLSL, the component is selected by calling a specific method.
2017-09-12 07:20:01 +10:00
Hans-Kristian Arntzen
0eaa2dee13 Merge pull request #279 from KhronosGroup/fix-276
Add option to disable use of 420pack extension.
2017-09-08 10:15:02 +02:00
Hans-Kristian Arntzen
fa5634164d Merge pull request #278 from KhronosGroup/fix-275
Ensure that exceptions are logged.
2017-09-08 09:57:02 +02:00
Hans-Kristian Arntzen
6599a41aad Add option to disable use of 420pack extension. 2017-09-08 09:56:06 +02:00
Hans-Kristian Arntzen
824d0ad8e7 Merge pull request #277 from KhronosGroup/pr-274
Merge PR #274 with Travis fixes
2017-09-08 09:35:26 +02:00
Hans-Kristian Arntzen
d9cbc03c9f Ensure that exceptions are logged. 2017-09-08 09:35:13 +02:00
Hans-Kristian Arntzen
eab66fcd55 Update HLSL references. 2017-09-08 09:14:00 +02:00
Hans-Kristian Arntzen
5aa5b08dd1 Merge branch 'sm-40-cbuffers' of git://github.com/rossy/SPIRV-Cross 2017-09-08 09:13:15 +02:00
James Ross-Gowan
fdbf794a67 Use the correct cbuffer binding for HLSL SM 4.0-5.0 2017-09-07 23:58:14 +10:00
Hans-Kristian Arntzen
d1b9c5a520 Merge pull request #273 from KhronosGroup/rmw-opt-tests
RMW optimizations tests
2017-09-06 16:50:30 +02:00
Hans-Kristian Arntzen
3f170b35e5 Just have one environment. 2017-09-06 12:05:31 +02:00
Hans-Kristian Arntzen
58697c7573 Use specific SPIRV-Tools revision in Travis. 2017-09-06 10:58:30 +02:00
Hans-Kristian Arntzen
656a7ba1d3 Remove irrelevant test.
The UDIV test was testing invalid SPIR-V and recent SPIRV-Tools errors
out on it.
2017-09-06 10:56:14 +02:00
Hans-Kristian Arntzen
a2229a0327 Add regression test for RMW optimizations. 2017-09-06 09:20:55 +02:00
Hans-Kristian Arntzen
03db5c4847 Run format_all.sh. 2017-09-06 09:15:27 +02:00
Hans-Kristian Arntzen
0013b06df5 Merge pull request #272 from dsrbecky/fix-assignment-opt
Fix assignment optimization for logical and/or.
2017-09-06 09:13:04 +02:00
David Srbecky
e596d40cad Fix assignment optimization for logical and/or.
"x = x && y" was converted to "x &= y", which is invalid.
2017-09-05 16:07:41 +01:00
Hans-Kristian Arntzen
9b04443808 Merge pull request #271 from KhronosGroup/frexp-struct
Support FrexpStruct/ModfStruct.
2017-09-04 10:40:28 +02:00
Hans-Kristian Arntzen
9091eadb0d Support FrexpStruct/ModfStruct. 2017-09-04 10:27:08 +02:00
Bill Hollings
86a9a40e69 CompilerMSL fix detection of input struct assignments. 2017-09-03 22:55:54 -04:00
Hans-Kristian Arntzen
e4251b7fea Merge pull request #269 from KhronosGroup/fix-268
Fix coherent and restrict image qualifiers for images.
2017-08-29 16:29:13 +02:00
Hans-Kristian Arntzen
11dfcb6531 Add restrict qualifier for images. 2017-08-29 15:54:22 +02:00
Hans-Kristian Arntzen
d55898ec74 Fix declaration of coherent images. 2017-08-29 15:52:59 +02:00
Hans-Kristian Arntzen
579a056e33 Merge pull request #266 from KhronosGroup/fix-265
Support coherent SSBO
2017-08-28 09:15:40 +02:00
Hans-Kristian Arntzen
536d888a92 Add test shader for coherent SSBO. 2017-08-28 09:02:08 +02:00
Hans-Kristian Arntzen
713bd7c2b5 Run format_all.sh. 2017-08-28 09:01:03 +02:00
Hans-Kristian Arntzen
89a29becd4 Add support for coherent SSBO qualifiers. 2017-08-28 08:59:54 +02:00
Hans-Kristian Arntzen
f0b4df00cd Merge pull request #262 from KhronosGroup/fix-253
Add sampler buffer support to HLSL.
2017-08-21 10:38:04 +02:00
Hans-Kristian Arntzen
e8d2c8e710 Support samplerBuffer as function parameters in HLSL. 2017-08-21 10:26:44 +02:00
Hans-Kristian Arntzen
e8d5d71cad Add sampler buffer support to HLSL. 2017-08-21 10:01:03 +02:00