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

35 Коммитов

Автор SHA1 Сообщение Дата
Aras Pranckevicius fa88522f4f Remove global alloc/free functions, since they aren't quite working yet anyway.
Let's cleanup whole memory handling before we add them.
2013-04-14 16:13:55 +03:00
Aras Pranckevicius 205177663c cleanup 2013-04-14 15:52:43 +03:00
Aras Pranckevicius 4147b558aa core: cleanup shutdown confusion; Hlsl2Glsl_Shutdown should be used. Removed Windows DllMain thingy. 2013-04-13 17:23:06 +03:00
Andy S 0d9fd2fb87 Add ETargetGLSL_140 and make it produce post 1.20 style texture lookups.
e.g. texture() and textureProj() instead of texture2D() and texture2DProj().
To do this I now (optionally) pass the ETargetVersion to Hlsl2Glsl_Initialize so it can choose what style of texture lookup functions initializeHLSLSupportLibrary() inserts into hlslSupportLib.
This means once initialized, every call to Hlsl2Glsl_Translate() has to use the matching ETargetVersion.
2013-02-27 15:54:13 -08:00
Maxime Coste 82ad8700a3 add (shotgun style) coverage mask support 2012-12-07 17:03:07 +01:00
Maxime Coste 88863500fd Add support for more semantics 2012-12-07 17:03:07 +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 f8911838b7 ShUniformInfo::annt was never set, so remove it 2012-10-01 12:55:35 +03:00
Aras Pranckevicius 67f5b0ea56 by default emit GLSL1.20 array initializers; the flag optionally kicks in the workaround 2012-09-30 21:08:49 +03:00
Aras Pranckevicius 3d6fe8bdac public interface: add ETargetVersion enum instead of trying to express target GLSL version as a set of flags 2012-09-29 13:44:56 +03:00
Aras Pranckevicius 89f908c41f add translate option to allow GLSL 1.20 (will enable some stuff soon) 2012-09-28 15:16:11 +03:00
Aras Pranckevicius 7ef842b61e postmerge: change how array initializers are emitted, plus tests for the behavior flip flag 2012-09-27 17:35:56 +03:00
Jim Sagevid 2093c92334 Fixed support to emit OS X 10.6 Snow Leopard compatible glsl 1.20 2012-09-11 11:59:56 +02:00
Jim Sagevid 449231b376 Added support for hlsl SV_VertexID, SV_PrimitiveID and SV_InstanceID semantics 2012-04-11 09:33:26 +02:00
Jim Sagevid cd62d4eb47 Added RECT and shadow sampler types to uniform reflection. 2012-04-10 14:14:23 +02: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
Jim Sagevid 73decfd0a7 Added a user data argument to the global alloc functions. 2012-03-30 20:26:33 +02:00
Jim Sagevid da48ab7ac8 Added support to specify allocation functions for global allocation, instead of using default new/delete. 2012-03-30 20:01:38 +02:00
Jim Sagevid c347cd4450 Removed the TransposeMatrixSwizzle options, as it should always be active. Also fixed a bug with assigning single elements using the matrix swizzle operators. 2012-03-02 11:11:03 +01:00
Jim Sagevid 3249bb36b4 Added support for swizzled matrix assignments and a new "combined" shader test type, with compiles the same source for both vs/fs, but with differing entry points.
Also added a new ETranslateOpTransposeMatrixSwizzles options, which controls how hlsl matrix.m_<row><col> syntax maps to glsl matrix[<row>][<col>]
2012-03-01 12:18:07 +01:00
Aras Pranckevicius 563edf8904 option to emit GLES-like precision qualifiers; breaks the interface. Might not work. 2010-10-13 12:16:13 +03:00
Aras Pranckevicius 7385273348 towards having precision on types 2010-10-13 10:38:33 +03:00
Aras Pranckevicius 4d4a3ef807 cleanup: licenses from all source files, go away, shoo! 2010-10-12 16:02:22 +03:00
Aras Pranckevicius 1e6e2e028e support VFACE (translates to gl_FrontFacing) 2010-07-29 10:16:04 +03:00
Aras Pranckevicius ac7dcef21d only emit gl_FragCoord for VPOS input semantic, not for POSITION 2010-07-29 10:04:02 +03:00
Aras Pranckevicius 3aaf9cc775 debugOptions in constructor was never used 2010-07-28 15:23:18 +03:00
Aras Pranckevicius 8adf17bcd7 releave user from need to construct parser & translator separately 2010-07-28 15:12:09 +03:00
Aras Pranckevicius b9182846c8 cleanup 2010-07-28 14:39:39 +03:00
Aras Pranckevicius c919db08ea cleanup more complexity that was there for no good reasons 2010-07-28 13:35:51 +03:00
Aras Pranckevicius 2520eb0db4 cleanup 2010-07-28 12:59:05 +03:00
Aras Pranckevicius d6207c0f88 cleanup useless comments 2010-07-28 12:44:06 +03:00
Aras Pranckevicius cf778e2822 having 'shader header' functionality in the library is kinda stupid; remove it 2010-06-08 12:07:04 +03:00
Aras Pranckevicius f46bff30ec never emit lengthy comments in generated shaders 2010-05-17 09:07:56 +03:00
Aras Pranckevicius de0ef093d4 line endings 2010-02-24 10:32:16 +02:00
Aras Pranckevicius 2d9cf26692 move public include file to /include 2010-02-24 10:02:15 +02:00