glslang-zig/glslang
LoopDawg e2713125b9 HLSL: fix several issues in mat construction from scalars
This fixes:

1. A compilation error when assigning scalars to matricies

2. A semantic error in matrix construction from scalars.  This was
initializing the diagonal, where HLSL semantics require the scalar be
replicated to every matrix element.

3. Functions accepting mats can be called with scalars, which will
be shape-converted to the matrix type.  This was previously failing
to match the function signature.

NOTE: this does not yet handle complex scalars (a function call,
say) used to construct matricies.  That'll be added when the
node replicator service is available.  For now, there's an assert.

There's one new test (hlsl.scalar2matrix.frag).  An existing test
lsl.type.half.frag changes, because of (2) above, and a negative
test error message changes due to (3) above.

Fixes #923.
2017-06-14 14:11:18 -06:00
..
GenericCodeGen Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
Include Implement extension GL_AMD_gpu_shader_int16 2017-06-09 17:11:23 +08:00
MachineIndependent HLSL: fix several issues in mat construction from scalars 2017-06-14 14:11:18 -06:00
OSDependent Modernise CMake #2 2017-04-29 11:23:15 +02:00
Public HLSL: Add an Includer to handle #include. 2017-06-01 11:16:32 -06:00
CMakeLists.txt Remove empty cpp files 2017-05-19 17:29:16 -04:00
updateGrammar Bison: Non-functional: Move to revision 3.0.4. 2016-05-04 12:54:56 -06:00