Commit graph

2387 commits

Author SHA1 Message Date
Mike Popoloski
ad9e9fe111 Adding missing C99 API methods. 2015-05-16 19:07:10 -04:00
Branimir Karadžić
4b18beb082 Rollback #389. 2015-05-15 20:08:38 -07:00
Branimir Karadžić
e348c08ebe D3D11: Disable map constant buffers. 2015-05-15 19:48:36 -07:00
Branimir Karadžić
991a9604cb Merge branch 'master' of github.com:bkaradzic/bgfx 2015-05-15 16:49:59 -07:00
Branimir Karadžić
c957a3dd51 Fixed timer query. 2015-05-15 16:49:53 -07:00
Branimir Karadžić
3dc38ed404 Merge pull request #389 from mendsley/dx11_map_constbuffers
Map/Unmap constant buffers instead of using UpdateSubResource
2015-05-15 14:16:17 -07:00
Matthew Endsley
51875f88b0 Map/Unmap constant buffers instead of using UpdateSubResource
(XB1) Drops GPU Busy % on spiral from 65% to 20%

(PC) Drops bgfx::d3d11::RendererContextD3D11::commitShaderConstants
CPU usage by 95% (11.21%->0.66%)

(PC) Overall decreases bgfx::d3d11::RenderContextD3D11::submit CPU
usage by another 34% (27.18%->17.90%)
2015-05-15 13:38:43 -07:00
Branimir Karadžić
2a49e5a143 Added flush after render reset flag. 2015-05-15 13:14:35 -07:00
Branimir Karadžić
4422e7227a Cleanup. 2015-05-14 21:16:33 -07:00
Branimir Karadžić
8964e68c87 Updated docs. 2015-05-14 20:33:33 -07:00
Branimir Karadžić
1f241e3cc1 Cleanup. 2015-05-14 19:05:59 -07:00
Branimir Karadžić
a8ef81ae4b D3D11: Force draw indirect UAV format to be uint32x4. 2015-05-14 14:38:53 -07:00
Branimir Karadžić
f5d0a39dd0 Added buffer compute format flags. 2015-05-14 11:37:32 -07:00
Branimir Karadžić
65ac7c33f5 Added png/jpg/tga/etc. to load texture utility function. 2015-05-13 22:54:52 -07:00
Branimir Karadžić
0305ba0bda Cleanup. 2015-05-13 14:11:56 -07:00
Branimir Karadžić
cacb332b42 GL: Enabled texture check for all platforms. 2015-05-12 23:03:17 -07:00
Branimir Karadžić
1deb6a2e9d Fixed issue #385. 2015-05-12 19:55:54 -07:00
Branimir Karadžić
8da183a2f1 Cleanup. 2015-05-12 17:25:09 -07:00
Branimir Karadžić
5e33eaf65b Merge pull request #384 from bullno1/color-texture-format-detection
Fix color texture format detection for webgl and gles < 3.0
2015-05-12 17:05:15 -07:00
Branimir Karadžić
e05eddce21 Merge branch 'master' of github.com:bkaradzic/bgfx 2015-05-12 17:03:32 -07:00
Branimir Karadžić
7d50012dbe Added GPU timer. 2015-05-12 17:03:25 -07:00
bullno1
0a3795ddfc Fix color texture format detection for webgl and gles < 3.0 2015-05-13 03:05:33 +08:00
Branimir Karadžić
32ce3ec84d Merge pull request #381 from jpcy/reset_unpack_row_length
Reset glPixelStorei GL_UNPACK_ROW_LENGTH to 0 after texture upload
2015-05-11 20:37:56 -07:00
Jonathan Young
ee5d73a328 Reset glPixelStorei GL_UNPACK_ROW_LENGTH to 0 after texture upload, if it's been changed. 2015-05-12 13:09:31 +10:00
Branimir Karadžić
146829b057 Commenting out RenderDoc interface release. Issue #380. 2015-05-11 18:23:02 -07:00
Branimir Karadžić
306b7060ca Cleanup. 2015-05-11 18:17:43 -07:00
Branimir Karadžić
1dd602dd83 EGL: Fixed compile error. 2015-05-11 14:27:38 -07:00
Branimir Karadžić
56eee90cbb Updated to latest imgui. 2015-05-11 14:26:09 -07:00
Branimir Karadžić
a40281ea23 Reverted MinGW info queue fix. Doesn't work with TDM64-1 4.9.2. Pull request #377. 2015-05-11 10:45:31 -07:00
Branimir Karadžić
e70ee88dc7 EGL: Initialize GLES2 when KHR_create_context is not available. 2015-05-10 11:45:49 -07:00
Branimir Karadžić
3afcd2c7c4 Merge pull request #377 from Leandros/mingw-patch-1
fix building under mingw32-w64
2015-05-09 20:16:23 -07:00
Branimir Karadžić
da31e555c0 Merge pull request #378 from zao/fix/msaa-rtv-dimension
Create backbuffer RTVs honoring multisampling
2015-05-09 20:15:20 -07:00
Lars Viklund
b965f730c0 Create backbuffer RTVs honoring multisampling
When adding sRGB support for the backbuffer render target in D3D11,
the now explicitly specified RTV desc specifies a TEXTURE2D dimension.
For multisampled targets, this needs to be TEXTURE2DMS dimension.

This solves it by branching on the presence of MSAA in the reset flags but
could envisionably be obtained by looking at the desc of the backbuffer.
2015-05-10 01:14:43 +02:00
Arvid Gerstmann
3349d7334a fix building under mingw32-w64 2015-05-09 02:33:08 +02:00
Branimir Karadžić
1aea6fc415 Detect RenderDoc presence when it's injected. 2015-05-08 11:49:18 -07:00
Branimir Karadžić
916693c29b Fixed GLES 3.0+ build. 2015-05-08 10:39:56 -07:00
Branimir Karadžić
9e5e7d476b Cleanup. 2015-05-06 07:46:59 -07:00
Branimir Karadžić
2f6de640e1 Merge pull request #375 from ming4883/pull-request-2
fixed sRGB-texture related compile erros for gles 2.0
2015-05-06 07:45:25 -07:00
Ka-ming Chan
e4c15eac32 fixed sRGB-texture related compile erros for gles 2.0 2015-05-06 21:04:12 +08:00
Branimir Karadžić
f3f302a20b GL: Create sRGB textures. D3D9: Enumerate sRGB textures. 2015-05-05 16:34:13 -07:00
Branimir Karadžić
d4cde9cbfa GL: Added sRGB texture caps. 2015-05-04 20:57:22 -07:00
Branimir Karadžić
bd17691a41 Added sRGB texture caps. 2015-05-04 17:23:11 -07:00
Branimir Karadžić
76fa899c22 Merge pull request #373 from MikePopoloski/srgb
sRGB Support
2015-05-04 16:31:24 -07:00
Branimir Karadžić
33dc15476b Updated RenderDoc header to v0.24. 2015-05-04 15:46:55 -07:00
Branimir Karadžić
d5c737924e Added back buffer depth stencil pointer to platform data. 2015-05-04 14:05:04 -07:00
Branimir Karadžić
b29e2290ac Merge pull request #369 from dariomanesku/master
Fixing SDL char input.
2015-05-03 09:57:22 -07:00
Dario Manesku
d21c75c40c Fixup for previous commit. 2015-05-03 16:20:41 +02:00
Dario Manesku
6efb223b49 Fixing SDL char input. 2015-05-03 15:52:40 +02:00
Branimir Karadžić
088bd06b04 Updated C99 API. 2015-05-03 00:01:33 -07:00
MikePopoloski
d5923e25fe sRGB support for D3D9 2015-05-02 23:54:51 -04:00