- 06 Dec, 2016 3 commits
-
-
Frank Henigman authored
Rather than update the existing ifdef to cover all necessary cases, get rid of it and always define TShader::~Includer().
-
John Kessenich authored
runtests should refer to test files in current directory
-
John Kessenich authored
Fixes issue #239.
-
- 05 Dec, 2016 2 commits
-
-
John Kessenich authored
Fixed processing #include's when preprocessing HLSL
-
David Neto authored
Recently added entry point renaming file referred to test source file hlsl.entry.rename.frag via relative directory. Change it to be consistent with other tests: assume test sources are in the current directory.
-
- 04 Dec, 2016 1 commit
-
-
Keith Newton authored
-
- 03 Dec, 2016 3 commits
-
-
John Kessenich authored
-
John Kessenich authored
-
https://github.com/steve-lunarg/glslang…John Kessenich authored
Merge branch 'intrinsic-promotion' of https://github.com/steve-lunarg/glslang into steve-lunarg-intrinsic-promotion
-
- 02 Dec, 2016 1 commit
-
-
John Kessenich authored
HLSL: allow renaming of shader entry point when creating SPIR-V
-
- 01 Dec, 2016 1 commit
-
-
steve-lunarg authored
Use "--source-entrypoint name" on the command line, or the TShader::setSourceEntryPoint(char*) API. When the name given to the above interfaces is detected in the shader source, it will be renamed to the entry point name supplied to the -e option or the TShader::setEntryPoint() method.
-
- 28 Nov, 2016 6 commits
-
-
John Kessenich authored
-
John Kessenich authored
This highly leverages the previous commit to handle partial initializers.
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
- 26 Nov, 2016 3 commits
-
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
-
- 23 Nov, 2016 5 commits
-
-
steve-lunarg authored
This PR handles implicit promotions for intrinsics when there is no exact match, such as for example clamp(int, bool, float). In this case the int and bool will be promoted to a float, and the clamp(float, float, float) form used. These promotions can be mixed with shape conversions, e.g, clamp(int, bool2, float2). Output conversions are handled either via the existing addOutputArgumentConversion function, which this PR generalizes to handle either aggregates or unaries, or by intrinsic decomposition. If there are methods or intrinsics to be decomposed, then decomposition is responsible for any output conversions, which turns out to happen automatically in all current cases. This can be revisited once inout conversions are in place. Some cases of actual ambiguity were fixed in several tests, e.g, spv.register.autoassign.* Some intrinsics with only uint versions were expanded to signed ints natively, where the underlying AST and SPIR-V supports that. E.g, countbits. This avoids extraneous conversion nodes. A new function promoteAggregate is added, and used by findFunction. This is essentially a generalization of the "promote 1st or 2nd arg" algorithm in promoteBinary. The actual selection proceeds in three steps, as described in the comments in hlslParseContext::findFunction: 1. Attempt an exact match. If found, use it. 2. If not, obtain the operator from step 1, and promote arguments. 3. Re-select the intrinsic overload from the results of step 2.
-
John Kessenich authored
A way to query "location" qualifier for vertex attributes, using TProgram reflection API
-
John Kessenich authored
HLSL: Add GS support
-
John Kessenich authored
HLSL: use HLSL parser for HLSL intrinsic prototypes, enable int/bool mats
-
John Kessenich authored
HLSL: allow "sample" as a valid identifier.
-
- 22 Nov, 2016 2 commits
-
-
BearishSun authored
Adding a way to retrieve vertex attribute TType using TProgram reflection API (required in order to query location attributes).
-
steve-lunarg authored
This PR adds: [maxvertexcount(n)] attributes point/line/triangle/lineadj/triangleadj qualifiers PointStream/LineStream/TriangleStream templatized types Append method on above template types RestartStrip method on above template types.
-
- 16 Nov, 2016 2 commits
-
-
steve-lunarg authored
HLSL has keywords for various interpolation modifiers such as "linear", "centroid", "sample", etc. Of these, "sample" appears to be special, as it is also accepted as an identifier string, where the others are not. This PR adds this ability, so the construct "int sample = 42;" no longer produces a compilation error. New test = hlsl.identifier.sample.frag
-
steve-lunarg authored
This PR adds a CreateParseContext() fn analogous to CreateBuiltInParseables(), to create a language specific built in parser. (This code was present before but not encapsualted in a fn). This can now be used to create a source language specific parser for builtins. Along with this, the code creating HLSL intrinsic prototypes can now produce them in HLSL syntax, rather than GLSL syntax. This relaxes certain prior restrictions at the parser level. Lower layers (e.g, SPIR-V) may still have such restrictions, such as around Nx1 matrices: this code does not impact that. This PR also fleshes out matrix types for bools and ints, both of which were partially in place before. This was easier than maintaining the restrictions in the HLSL prototype generator to avoid creating protoypes with those types. Many tests change because the result type from intrinsics moves from "global" to "temp". Several new tests are added for the new types.
-
- 15 Nov, 2016 1 commit
-
-
John Kessenich authored
-
- 14 Nov, 2016 5 commits
-
-
John Kessenich authored
Add UAV (image) binding offset and HLSL register class support
-
John Kessenich authored
SPV: The execution scope for barriers should be Workgroup.
-
chrgau01@arm.com authored
-
John Kessenich authored
SPV: Fix unreferenced variable warning with AMD_EXTENSIONS disabled.
-
John Kessenich authored
HLSL: allow promotion from 1-vector types to scalars, e.g, float<-float1
-
- 13 Nov, 2016 1 commit
-
-
steve-lunarg authored
Previously, an error was thrown when assigning a float1 to a scalar float, or similar for other basic types. This allows that. Also, this allows calling functions accepting scalars with float1 params, so for example sin(float1) will work. This is a minor change in HlslParseContext::findFunction().
-
- 11 Nov, 2016 2 commits
-
-
John Kessenich authored
HLSL: Allow expressions in attributes
-
steve-lunarg authored
For example: [numthreads(2+2, 2*3, (1+FOO)*BAR)] This will result in a thread count (4, 6, 8).
-
- 09 Nov, 2016 1 commit
-
-
Jamie Madill authored
-
- 05 Nov, 2016 1 commit
-
-
John Kessenich authored
Rationalizes the entire tracking of the linker object nodes, effecting GLSL, HLSL, and SPIR-V, to allow tracked objects to be fully edited before their type snapshot for linker objects. Should only effect things when the rest of the AST contained no reference to the symbol, because normal AST nodes were not stale. Also will only effect such objects when their types were edited.
-