glslang-zig/glslang
steve-lunarg 26d3145334 HLSL default function parameters
This PR adds support for default function parameters in the following cases:

1. Simple constants, such as void fn(int x, float myparam = 3)
2. Expressions that can be const folded, such a ... myparam = sin(some_const)
3. Initializer lists that can be const folded, such as ... float2 myparam = {1,2}

New tests are added: hlsl.params.default.frag and hlsl.params.default.err.frag
(for testing error situations, such as ambiguity or non-const-foldable).

In order to avoid sampler method ambiguity, the hlsl better() lambda now
considers sampler matches.  Previously, all sampler types looked identical
since only the basic type of EbtSampler was considered.
2016-12-29 12:15:48 -07:00
..
GenericCodeGen Whitespace: Nonfunctional: fix inconsistent white space, esp. no tabs. 2016-08-05 17:34:34 -06:00
Include PP: Non-functional: Make a proper class out of the atom <-> string mapping. 2016-12-21 13:49:16 -07:00
MachineIndependent HLSL default function parameters 2016-12-29 12:15:48 -07:00
OSDependent Use a recursive mutex. 2016-10-15 15:19:59 -07:00
Public Linker: Eliminate uncalled functions, because they can be ill-defined. 2016-12-09 19:22:20 -07:00
CMakeLists.txt HLSL: Add location offsets per resource type 2016-09-20 20:31:27 -06:00
updateGrammar Bison: Non-functional: Move to revision 3.0.4. 2016-05-04 12:54:56 -06:00