Mike Popoloski
2819f93f26
shaderc dx11 now removes unused constants
...
The D3D11 shader compiler doesn't remove unused constants because it would change the size of buffers uploaded by the application. This means that all of the default unused bgfx uniforms take up a huge amount of space that forces the app to waste a ton of time uploading zeroes. This change is a bit of a hack but removes the unused constants and improves performance a great deal.
2015-04-11 15:40:31 -04:00
Mike Popoloski
68044893ab
Disabling warnings in glsl-optimizer.
2015-04-11 13:41:27 -04:00
Branimir Karadžić
028cef647b
Updated makefile.
2015-04-11 09:45:11 -07:00
Branimir Karadžić
202fb0b36c
Fixed GL with BGRA extension and without texture swizzle extension.
2015-04-11 09:42:17 -07:00
Branimir Karadžić
23f4c82b1a
Merge branch 'dev'
2015-04-11 00:23:29 -07:00
Branimir Karadžić
a042d6f7b9
Fixed decoding of unsupported RGBA8/BGRA8 formats on D3D9/GL.
2015-04-11 00:17:49 -07:00
Branimir Karadžić
5dc83d65f5
Fixed narrowing variable.
2015-04-10 21:31:53 -07:00
Branimir Karadžić
db9802a73f
Fixed Linux build.
2015-04-10 21:24:25 -07:00
Branimir Karadžić
c7eb016ae0
Rebuilt shaders.
2015-04-10 21:09:46 -07:00
Branimir Karadžić
3362c31190
Merge pull request #331 from MikePopoloski/master
...
Remove dependence on legacy DXSDK
2015-04-10 21:05:03 -07:00
Mike Popoloski
d6da31d7f8
Rebuilding all embedded shaders.
2015-04-10 22:55:13 -04:00
Mike Popoloski
5f4bd7700e
Recompiling shaders. Shouldn't have any effect on runtime behavior.
2015-04-10 22:49:39 -04:00
Mike Popoloski
bfb793b3dd
Fixing bug in compute shader macros
...
Buffer<> type in HLSL requires 't' registers, not 'b'. This probably worked by accident in old shader compiler but the latest version throws an error on it.
2015-04-10 22:48:07 -04:00
Mike Popoloski
9976f6cc4c
Removing now unused shaderc_dx9 source and renaming dx11 source file.
2015-04-10 22:23:01 -04:00
Branimir Karadžić
9aa304f86f
Cleanup.
2015-04-10 19:21:31 -07:00
Mike Popoloski
3e49bf536d
Can't use #ifdef for checking IID_ID3D11ShaderReflection, because it's not a macro...
2015-04-10 22:08:04 -04:00
Mike Popoloski
f919f7811f
Cleanup
2015-04-10 22:01:58 -04:00
Mike Popoloski
6e53a5e229
Remove last dependence on legacy DXSDK / D3DX
...
The legacy DXSDK was only needed for DX9 shader compilation, but D3DCompile can handle old shader models. The only other thing needed was reflection support for getting constant data, which I've added.
2015-04-10 22:01:57 -04:00
Branimir Karadžić
428e586e11
Cleanup.
2015-04-10 14:40:47 -07:00
Branimir Karadžić
8cd66200d2
Updated README.
2015-04-10 08:37:57 -07:00
Branimir Karadžić
328f980945
Cleanup.
2015-04-10 08:33:20 -07:00
Branimir Karadžić
393a7311ee
Merge pull request #330 from mmicko/master
...
FreeBSD compile support
2015-04-10 08:06:40 -07:00
Miodrag Milanovic
b394570ff7
Updated so it can build for FreeBSD
2015-04-10 16:46:49 +02:00
Miodrag Milanovic
ab94f3df36
Fix compile for FreeBSD
2015-04-10 16:11:55 +02:00
Branimir Karadžić
c9cd5521bd
Fixed issue #327 (oops!).
2015-04-09 22:31:48 -07:00
Branimir Karadžić
da8a691163
Cleanup.
2015-04-09 21:57:05 -07:00
Branimir Karadžić
c15439b7cb
Added ability to continue when GL shader compilation fails. Issue #327 .
2015-04-09 20:36:52 -07:00
Branimir Karadžić
fa2b5068f7
Merge branch 'dev'
2015-04-09 20:09:32 -07:00
Branimir Karadžić
d94c38b7ef
Fixed issue #325 .
2015-04-09 20:03:59 -07:00
Branimir Karadžić
352322e564
Merge branch 'dev'
2015-04-09 19:44:24 -07:00
Branimir Karadžić
f24a84b8b1
Cleanup.
2015-04-09 19:38:51 -07:00
Branimir Karadžić
6f7215ad26
Updated README.
2015-04-09 19:31:37 -07:00
Branimir Karadžić
15206dc5a5
Fixed matrix cache size.
2015-04-09 17:36:36 -07:00
Branimir Karadžić
4d30bd201e
Updated 17-drawstress.
2015-04-09 16:58:44 -07:00
Branimir Karadžić
99c645a353
Merge pull request #329 from MikePopoloski/master
...
Allow the max draw call count to go above 65k.
2015-04-09 16:44:47 -07:00
Mike Popoloski
e9f31b58d6
Allow the max draw call count to go above 65k.
2015-04-09 19:26:41 -04:00
Branimir Karadžić
00c0c33581
Updated README.
2015-04-09 00:10:28 -07:00
Branimir Karadžić
5cd313e342
Cleanup.
2015-04-08 23:25:17 -07:00
Branimir Karadžić
c69f29cb36
D3D9: Fixed RGBA8 texture format.
2015-04-08 22:41:19 -07:00
Branimir Karadžić
a3a1ed112b
Fixed variable shadowing warning.
2015-04-08 22:40:51 -07:00
Branimir Karadžić
b9d2a05a28
Updated docs.
2015-04-08 21:15:37 -07:00
Branimir Karadžić
23114a821c
32-bit indices support WIP.
2015-04-08 19:59:48 -07:00
Branimir Karadžić
1824a3f5bd
Cleanup.
2015-04-08 14:16:02 -07:00
Branimir Karadžić
6fe02e7815
Fixed crash (Win7) when query IID_IDXGIDevice3 succeeds, but getting adapter fails.
2015-04-07 20:41:16 -07:00
Branimir Karadžić
c85c12b5cd
Fixed variable narrowing warnings.
2015-04-07 17:58:14 -07:00
Branimir Karadžić
ad6b0d87af
Added OSX version check to glext.h
2015-04-06 21:41:51 -07:00
Branimir Karadžić
288361b5c1
Pass all reset flags to glcontext.
2015-04-06 21:31:26 -07:00
Branimir Karadžić
c5a03233c0
Fixed shutdown sequence.
2015-04-06 18:22:15 -07:00
Branimir Karadžić
06314151c5
Merge branch 'master' of github.com:bkaradzic/bgfx
2015-04-06 11:38:47 -07:00
Branimir Karadžić
a3fedf0e43
Fixed shaderc build with xcode.
2015-04-06 11:38:28 -07:00