- Mar 25, 2018
-
-
John Kessenich authored
This effects 60 tests, in a trivial way, but is critical to factor out this noise from future planned changes.
-
- Mar 23, 2018
-
-
John Kessenich authored
Fixes #1304.
-
John Kessenich authored
Should fix #1308.
-
- Mar 21, 2018
-
-
John Kessenich authored
Improve --auto-map-locations for uniforms (v2)
-
John Kessenich authored
Add additional error check for fragment shader outputs
-
Neil Roberts authored
When assigning uniform locations it now takes into account the number of locations occupied by the type. For uniforms, all types except arrays and structs take up one location. For arrays the base location count is multiplied by the array dimensions and for structs it is the sum of the locations of each member.
-
Neil Roberts authored
-
Rex Xu authored
Int64 and uint64 are disallowed as fragment shader outputs, similar to double.
-
- Mar 19, 2018
-
-
John Kessenich authored
-
John Kessenich authored
PP: don't give errors on some tokens under #if 0 (or similar).
-
John Kessenich authored
Fixes #1295. Tokens that are accepted by any version of HLSL or GLSL should be allowed when #ifdef'd off, such that errors are not reported.
-
- Mar 17, 2018
-
-
John Kessenich authored
WIP: Implement SPV_GOOGLE_hlsl_functionality1.
-
John Kessenich authored
Enabled via -fhlsl_functionality1
-
- Mar 16, 2018
-
-
John Kessenich authored
Add support for GL_NV_shader_noperspective_interpolation
-
John Kessenich authored
-
John Kessenich authored
Fix conversions
-
Ben Clayton authored
-
John Kessenich authored
Use the correct type for the constant for matrix/scalar division
-
John Kessenich authored
The base and shift amount need to be integers, but not of the same type. This fixes #1296 and replaces #1297.
-
John Kessenich authored
Historically, addConversion() was split to handle binary node <-> node conversions from non-binary node -> type conversions. However, the split wasn't entirely clean WRT HLSL design and left duplication of case statements, which are misleading, and this commit cleans up.
-
John Kessenich authored
Reinforces that conversion rules are operation-specific. Side effect is that HLSL logical-operator conversions are more direct (e.g. float -> bool, rather than float -> int -> bool).
-
- Mar 14, 2018
-
-
John Kessenich authored
Fix build several build errors
-
- Mar 13, 2018
-
-
Daniel Koch authored
glslang/SPIRV/SpvBuilder.cpp:2533:27: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Werror,-Wsign-compare] for (int c = 0; c < accessChain.swizzle.size(); ++c) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. glslang/hlsl/hlslParseHelper.cpp:69:5: error: field 'cullDistanceInput' will be initialized after field 'clipDistanceOutput' [-Werror,-Wreorder] cullDistanceInput(nullptr), ^ 1 error generated. glslang/glslang/MachineIndependent/attribute.cpp:85:16: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Werror,-Wsign-compare] if (argNum >= args->getSequence().size()) ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.
-
John Kessenich authored
Replace en-dash with simple ASCII hyphen
-
Baldur Karlsson authored
* This means the source file is ASCII instead of (assumed) UTF-8 and doesn't cause warnings when compiling on non-western codepages.
-
Ben Clayton authored
-
Neil Roberts authored
When a matrix is divided by a scalar it tries to take the reciprocal of the scalar to convert the operation into a multiply. However it was always doing this by making a 32-bit constant. If the scalar is a double then this would end up making an FDiv instruction with different types in the operands. This patch adds a helper method called makeFpConstant which makes a floating-point constant of the given type. The code to take the reciprocal now uses it to make the same type as the result. Fixes https://github.com/KhronosGroup/glslang/issues/1278
-
- Mar 12, 2018
-
-
John Kessenich authored
Update known_good to SPIR-V 1.3 support
-
John Kessenich authored
HLSL: Correct some mistakes for min16 types
-
John Kessenich authored
include/Common.h: reorder includes to avoid redefinition on some platforms
-
Rex Xu authored
- Add missing constructor ops to support float16/int16/uint16 types - Allow half float literals - Correct two errors of double literal parse in HLSL: extension check and postfix
-
- Mar 11, 2018
-
-
Josh de Kock authored
On some systems sstream defines snprintf, this leads to the a redefinition of sprintf_s if snprintf is defined before checking if it exists in sstream.
-
- Mar 10, 2018
- Mar 08, 2018
-
-
John Kessenich authored
Fix memory leak upon ProcessDeferred failure.
-
John Kessenich authored
Allow --hlsl-enable-16bit-types to be used without AMD_EXTENSIONS
-
Rex Xu authored
-
siavashserver authored
-
- Mar 07, 2018
-
-
John Kessenich authored
Fixed GCC+Clang errors and warnings on Linux and OSX.
-
John Kessenich authored
-