Граф коммитов

38 Коммитов

Автор SHA1 Сообщение Дата
Aras Pranckevicius f029d9c526 Merge pull request #16 from mawww-master:
* line endings to LF
* yyerror takes a const char* instead of a char*
* binary not is ~, not -
* enable some bitwise operations as supported features
* add missing outES test files
* fix empty body if handling
* fix cast on function call
* add struct initialisation by scalar support
* fix global-init test
* add (shotgun style) coverage mask support
* Fix inverted left and right shift operators
* fix EOpRightShiftAssign output, >>=, not ??=
* promote constant union to right type, plus fixes
* Add support for more semantics
* Add tests for tokenpasting and global initialization
* add execute permission to bison and flex
* various swizzle and arrays fixes.
* Fix bad order in HLSL matrix rows/columns, add definitions for mul(float.*, float.*)
* update tests results matrix non square
* fix in type construction for swizzle
* Add overloading tests
* handle upward vector promotion in TSymbolTableLevel::findCompatible…
* Add test for non-square matrix and vector promotion
* Fix vector upward promotion for single argument functions
* Add support for non square matrices
* remove unistd.h
* fix CMakeList
* hlsl2glsltest: add glut fallback version
2012-12-18 19:06:25 +02:00
Aras Pranckevicius ef79fa846d line endings to LF 2012-12-18 18:43:08 +02:00
Aras Pranckevicius d3b46bceaa towards HDR in GLES: add sampler2D_half, sampler2D_float, samplerCUBE_half, samplerCUBE_float fake HLSL keywords 2012-12-17 16:14:18 +02:00
Maxime Coste 3322bb0ce6 yyerror takes a const char* instead of a char* 2012-12-07 17:48:30 +01:00
Maxime Coste d810559c80 Add support for non square matrices
* Non square matrices are glsl > 1.20
* Use glsl matrix conversion functions (> 1.20 too)
* various cleanups
2012-12-07 17:03:06 +01:00
Aras Pranckevicius 3f34be4553 lexer: no digraphs in HLSL 2012-10-01 16:52:07 +03:00
Aras Pranckevicius cf782f8199 lexer: no hvecN, fvecN, dvecN in HLSL 2012-10-01 16:51:55 +03:00
Aras Pranckevicius 181a2a6609 fix inconsistent #line output because of uninitialized variable 2012-09-29 16:43:02 +03:00
Aras Pranckevicius 40e2c4a255 hand-merge from https://github.com/jims/hlsl2glslfork
Not everything was taken as-is; and right now does not fully work!
2012-09-26 19:25:29 +03:00
Aras Pranckevicius f3b060ad6c support fake HLSL syntax for shadow maps: sampler2Dshadow, shadow2D, shadow2Dproj. Translates into EXT_shadow_samplers for GLES 2012-08-31 14:59:38 +03:00
Aras Pranckevicius 26d43888b2 Merge branch 'master' of https://github.com/shaggie76/hlsl2glslfork 2012-08-18 19:35:45 +03:00
Aras Pranckevicius 84bfdf5817 fix windows build 2012-07-04 14:03:47 +03:00
Aras Pranckevicius 8ccb9ea8d7 fix const-related warnings 2012-06-21 16:54:53 +03:00
Jim Sagevid f540227bd1 Added shadow sampler support. Any tex?D/tex?DProj on a shadow sampler will generate the appropriate shadow1D/2D/2DRect/Proj call. 2012-04-08 18:32:58 +02:00
Glen Miner e9c05689e3 Hoisted stripping of quotes on #line file-names to when they're parsed instead of every time they're used. 2011-12-22 12:50:18 -05:00
Glen Miner c730ae110e Fixed still yet more dangling pointers; apparently the strings used in the preprocessor are not preserved for its lifetime; changed instead to use the symbol table. 2011-12-22 11:24:33 -05:00
Glen Miner 9f23747366 Extended #line directive support to include file-name tracking.
#line directives in the source text are now interpreted as the specification for the *next* line in input (this is how other preprocessors interpret them); this altered a few test outputs but is otherwise harmless.

Formatted the output slightly differently when file-names are present so that error locations are automatically identified by Visual Studio.
2011-12-20 12:53:52 -05:00
Aras Pranckevicius 4f60f94a2a pp: cleanup unused 2011-11-18 22:12:25 +02:00
Aras Pranckevicius e4ce78c7b7 output: always emit #line directives 2011-11-17 22:49:26 +02:00
Aras Pranckevicius ffc8ebc4f5 parser: cleanup and add remember whether there were any #line directives in input 2011-11-17 21:36:00 +02:00
Aras Pranckevicius e24a540334 preprocessor: multiple source strings are never used, cleanup 2011-07-06 10:42:32 +03:00
Joachim Ante 272a91df0c fix warnings 2011-01-23 22:41:57 +02:00
Maxime Coste 68a0db1300 support static qualifier for globals 2011-01-05 11:26:31 +02:00
Aras Pranckevicius be8b4c21ad support 'fixed' matrix types 2010-12-30 22:16:35 +02:00
Aras Pranckevicius 3035db8323 translate 'half' matrix types to mediump for ES 2010-12-30 22:11:49 +02:00
Aras Pranckevicius d7891cda6e cleanup pragma related code 2010-10-13 22:55:50 +03:00
Aras Pranckevicius 7385273348 towards having precision on types 2010-10-13 10:38:33 +03:00
Aras Pranckevicius f144a102a5 cleanup unused 2010-10-12 16:34:18 +03:00
Aras Pranckevicius 4d4a3ef807 cleanup: licenses from all source files, go away, shoo! 2010-10-12 16:02:22 +03:00
Aras Pranckevicius e267f1b586 lexer support for fixed,fixed2,fixed3,fixed4 2010-10-12 12:18:53 +03:00
Aras Pranckevicius 2c16e225b2 support float literals in form of 1f 2010-08-31 15:24:03 +03:00
Aras Pranckevicius 2520eb0db4 cleanup 2010-07-28 12:59:05 +03:00
Aras Pranckevicius b4478d5ae6 oh joy, some Flex versions (2.5.33) choke on two square brackets. Work around that. 2010-04-16 11:45:57 +03:00
Aras Pranckevicius 38fe5599a3 cleanup some unused crap 2010-03-23 21:14:21 +02:00
Aras Pranckevicius 1f1514673d towards supporting RECT textures 2010-02-26 16:31:25 +02:00
Aras Pranckevicius 034a0d2843 avoid yylineno conflicts 2010-02-24 11:41:27 +02:00
Aras Pranckevicius 00f2aa9124 ignore inline/noinline 2010-02-24 08:56:49 +02:00
Aras Pranckevicius 74cab90384 initial hlsl2glsl from ATI 2010-02-23 14:26:22 +02:00