Commit Graph

65 Commits

Author SHA1 Message Date
attilaz
acf3db7a06 Fix sampler/texture indices for metal (#1242)
Fix for https://github.com/bkaradzic/bgfx/issues/1227 .

It gets texture slot from compiled shaders and maps it to Sampler uniform. So sampler uniform MUST be defined before using shader (shadowmap_simple has a bug with invalid uniform name).
2017-09-22 08:44:51 -07:00
Branimir Karadžić
7c9b2b7257 API change: Simplified destroy functions to use overload resolution. 2017-07-17 22:29:43 -07:00
Branimir Karadžić
3e212b519f Moving code around and renaming files. 2017-07-15 21:01:08 -07:00
Branimir Karadžić
a274c9a6c5 Replaced BX_OVERRIDE with override. 2017-07-15 00:17:29 -07:00
Branimir Karadžić
0fad539078 Cleanup. 2017-06-29 23:19:20 -07:00
Branimir Karadžić
917385f79e Cleanup. 2017-06-29 22:23:18 -07:00
Branimir Karadžić
5f666a5ee2 Combined all examples. Issue #1143. 2017-06-25 21:44:04 -07:00
Branimir Karadžić
596bd28446 Cleanup. 2017-06-13 22:27:22 -07:00
Branimir Karadžić
2dc7aa1a7c Cleanup. 2017-06-13 20:17:04 -07:00
Branimir Karadžić
3fcaac24fb Cleanup. 2017-06-13 18:42:17 -07:00
attilaz
a7d937f990 shadowmaps simple to entry::AppI (#1157) 2017-06-13 14:33:56 -07:00
Branimir Karadžić
3fbcddb4ef Renamed constants to new style. 2017-06-09 20:08:52 -07:00
Branimir Karadžić
68c6b46a65 Exposed vertex stream argument to API. 2017-05-14 11:48:59 -07:00
Branimir Karadžić
8499319009 Cleanup. 2017-03-31 21:01:08 -07:00
Branimir Karadžić
29079cf890 Fixed issue #1077. 2017-03-14 20:41:31 -07:00
Branimir Karadžić
7c16314f6f Cleanup. 2017-03-11 22:17:34 -08:00
Branimir Karadžić
d96225a1f0 Fixing projection matrix in examples. 2017-02-22 22:26:39 -08:00
Branimir Karadžić
0838dad5ab Fixed build. 2017-02-14 20:27:31 -08:00
Brian Harris
ffd3771a09 Updated makefiles to build spirv (#1025) 2017-01-20 09:29:09 -08:00
Branimir Karadžić
b9b8a6e871 Cleanup. 2017-01-04 08:34:25 -08:00
Branimir Karadžić
dc5a3e6e6c Fixed leak. 2016-10-18 21:01:11 -07:00
Branimir Karadžić
c98be90bf5 WIP: Texture array support. 2016-08-19 21:05:37 -07:00
Branimir Karadžić
4b26830fc1 shaderc: Allow shader without color target write. 2016-07-01 20:38:12 -07:00
Branimir Karadžić
861a63bf2e Updated makefiles. 2016-02-29 19:58:17 -08:00
Lunkhound
6f9a9278ec removed z coord adjustment in shadow2D() shader builtin for HLSL versions 2016-01-17 23:05:40 -08:00
Lunkhound
b655ee94ae shadowmaps_simple: fix OGL shadow camera volume 2016-01-15 14:54:56 -08:00
Branimir Karadžić
fbace33048 Renamed BGFX_TEXTURE_RT_BUFFER_ONLY to more descriptive BGFX_TEXTURE_RT_WRITE_ONLY. 2016-01-12 17:11:16 -08:00
Branimir Karadžić
4bb2b623d3 Happy New Year! 2016-01-01 00:11:04 -08:00
Andrew Mac
0788b28641 Fix crash in D3D9 shadowmap examples. 2015-11-22 13:36:57 -04:00
Branimir Karadžić
f47a26dcfa Cleanup. 2015-10-24 22:34:11 -07:00
Branimir Karadžić
1c51d81006 Cleanup. 2015-10-23 20:52:22 -07:00
Branimir Karadžić
0fba3c137e Added checks for redundant uniform sets. 2015-09-25 20:54:40 -07:00
Branimir Karadžić
d1f99896ec Moved public header files into bgfx subdirectory.
grep -rl '<bgfx.h>' . | xargs sed -i 's@<bgfx.h>@<bgfx/bgfx.h>@g'
2015-09-18 20:19:12 -07:00
Branimir Karadžić
6d8cf6a000 Fixed issue #470. 2015-08-07 10:37:02 -07:00
Branimir Karadžić
1fa85ccf27 Replaced bgfx::setProgram function with bgfx::submit argument. Added bgfx::touch and bgfx::getStats. 2015-07-22 18:05:11 -07:00
Branimir Karadžić
67997930e3 Cleanup. 2015-06-06 17:13:52 -07:00
Branimir Karadžić
acfab2a171 Cleanup. 2015-06-06 16:57:43 -07:00
Branimir Karadžić
ff01992cb7 Refactored uniform types. 2015-05-28 15:27:00 -07:00
Branimir Karadžić
c8f1157f3b Fixed 15-shadowmaps-simple example. 2015-04-16 21:26:46 -07:00
Branimir Karadžić
1e8051fd00 Fixed variable shadowing. 2015-04-04 19:10:35 -07:00
Branimir Karadžić
a34e6e7965 Fixed VS2015 warnings. 2015-03-29 11:47:32 -07:00
Branimir Karadžić
ff7f967c1b Removed _BIT suffix from BGFX_CLEAR_* flags. 2015-01-10 21:39:45 -08:00
Branimir Karadžić
7db31fc7fa Cleanup. 2015-01-07 22:36:36 -08:00
Branimir Karadžić
208a348ab2 Fixed compile errors. Added default part of view debug name. Added example how to use view debug name. 2014-10-25 18:07:51 -07:00
Dario Manesku
48ce6bb5ff Added custom mtxProj() call to properly handle OGL NDC. 2014-10-06 07:25:33 +02:00
Branimir Karadžić
fc371fc24c Removing use of setView*Mask API. 2014-09-27 11:31:04 -07:00
Branimir Karadžić
eec4ae9847 Fixing paths. 2014-09-10 21:48:08 -07:00
Branimir Karadžić
66890595b9 Added serialization for vertex decl attribute enums. Binary format changes. Rebuilt all meshes and shaders. 2014-08-17 17:20:15 -07:00
Branimir Karadžić
d33717ef48 Moved mesh files to assets directory. 2014-08-16 20:27:36 -07:00
Branimir Karadžić
02e549bfec Moved fpumath to bx. 2014-05-26 19:31:37 -07:00