Branimir Karadžić
2e1d82b7d9
Fixed build.
2015-10-01 15:40:28 -07:00
Branimir Karadžić
c0ae9d671b
Fixed asmjs build.
2015-09-30 14:43:02 -07:00
Branimir Karadžić
7f334e09fd
Fixed Metal renderer.
2015-09-29 20:49:39 -07:00
Branimir Karadžić
91fe7aafdb
Added support for RGB9E5F fromat.
2015-09-29 16:06:06 -07:00
Branimir Karadžić
b5ab524ee1
Cleanup.
2015-09-25 21:51:30 -07:00
Branimir Karadžić
0fba3c137e
Added checks for redundant uniform sets.
2015-09-25 20:54:40 -07:00
Branimir Karadžić
5142e507b0
Reverted 682a0519ef
.
2015-09-23 20:03:59 -07:00
Branimir Karadžić
f936d4c05e
Fixed clang warnings.
2015-09-22 15:19:39 -07:00
Branimir Karadžić
4763828e63
Cleanup.
2015-09-20 23:22:23 -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
Jean-Francois Verdon
350b77091c
Textures created with BackbufferRatio::enum where not sized correctly when bgfx first reset size was different from 1280x720px
2015-09-18 14:16:38 +02:00
Branimir Karadžić
6f6131f694
Cleanup.
2015-09-17 21:17:38 -07:00
Branimir Karadžić
54be2d5b77
Cleanup.
2015-09-17 19:55:01 -07:00
Branimir Karadžić
7adfc7856a
D3D12: Sampler border color.
2015-09-16 20:59:22 -07:00
Branimir Karadžić
9311718f68
MTL: Added ClampToZero sampler mode.
2015-09-16 20:02:36 -07:00
Branimir Karadžić
ae71103bf9
Added border color index.
2015-09-16 17:21:28 -07:00
Branimir Karadžić
c94f5acd6d
Updated RenderDoc header to v0.26.
2015-09-15 13:13:19 -07:00
Branimir Karadžić
5690e1cde8
Added uniform buffer dynamic resizing.
2015-09-14 15:53:33 -07:00
Branimir Karadžić
cba8c5d430
Cleanup.
2015-09-13 13:25:53 -07:00
Branimir Karadžić
344bacab7c
Added workaround for compilers/platforms that don't support TLS specifier.
2015-09-13 13:24:14 -07:00
Branimir Karadžić
2c3e6867d7
Fixed variable shadowing warning.
2015-09-12 15:31:42 -07:00
Branimir Karadžić
f1a9081d2f
Cleanup.
2015-09-12 15:11:56 -07:00
Branimir Karadžić
6abfcffb2e
GL: Check if extension exist before setting border color.
2015-09-12 09:25:37 -07:00
Branimir Karadžić
4ef43dc802
GLES: Fixed imports.
2015-09-11 20:20:59 -07:00
Branimir Karadžić
c31ad50f31
GLES: Fixed clamp to border.
2015-09-11 20:05:13 -07:00
Branimir Karadžić
72446e998b
Added border texture address mode.
2015-09-11 17:40:38 -07:00
Branimir Karadžić
e5db297ba8
Fixed framebuffer clear.
2015-09-10 22:46:51 -07:00
Branimir Karadžić
01ceccf515
D3D11: Find discard instruction to enable/disable fragment shader when writing into FB without color attachment.
2015-09-10 16:32:37 -07:00
Branimir Karadžić
05490b53ca
D3D9: Fixed crash on resize.
2015-09-10 13:29:12 -07:00
Branimir Karadžić
65e0417c45
Merge branch 'dev'
2015-09-09 20:31:21 -07:00
Branimir Karadžić
00a630a783
Cleanup.
2015-09-09 20:18:55 -07:00
Branimir Karadžić
ade3d5bb90
Fixed Android build.
2015-09-09 18:35:59 -07:00
Branimir Karadžić
58f7676f7b
Added process memory usage info.
2015-09-09 17:26:55 -07:00
Branimir Karadžić
3301da6ea3
Cleanup.
2015-09-08 20:57:31 -07:00
Bruce Mitchener
e832cd1223
Fix typos.
2015-09-07 17:33:22 +07:00
Branimir Karadžić
6482c8901f
Cleanup.
2015-09-04 21:20:55 -07:00
Branimir Karadžić
493ed72e45
D3D12: Fixed sampler state change.
2015-09-04 20:48:00 -07:00
Branimir Karadžić
d13fe2321a
Manually merged pull request #508 .
2015-09-04 19:49:42 -07:00
Branimir Karadžić
5d540169ac
Fixed build.
2015-09-02 16:53:08 -07:00
Branimir Karadžić
6edba00924
GL: Fixed GPU timer frequency.
2015-09-02 15:03:22 -07:00
Branimir Karadžić
561b7aa793
Cleanup.
2015-09-01 22:15:47 -07:00
Branimir Karadžić
1abf4d483f
Cleanup.
2015-09-01 22:04:05 -07:00
Branimir Karadžić
1554903019
Cleanup.
2015-09-01 20:23:37 -07:00
Branimir Karadžić
11d2aa855f
Fixed uniform type.
2015-09-01 16:48:01 -07:00
Branimir Karadžić
4470f7097c
Fixed HLSL reflection for samplers.
2015-09-01 16:44:11 -07:00
Branimir Karadžić
9f1b7866d0
Fixed OSX build.
2015-09-01 13:34:36 -07:00
Branimir Karadžić
818c231d49
Detect available MSAA texture formats.
2015-09-01 13:23:20 -07:00
Branimir Karadžić
641a105f5d
Added mOar texture formats.
2015-08-31 10:16:36 -07:00
Branimir Karadžić
d10b4440d5
Removed debug code.
2015-08-30 13:54:04 -07:00
Branimir Karadžić
d960217e9b
D3D12: Cleanup.
2015-08-30 08:52:53 -07:00
Branimir Karadžić
bff5f2bafd
Cleanup.
2015-08-29 01:03:13 -07:00
Branimir Karadžić
83935d0944
Merge branch 'dev'
2015-08-28 20:45:42 -07:00
Branimir Karadžić
bb89e6291c
Cleanup.
2015-08-28 20:34:14 -07:00
Branimir Karadžić
15b7c0e60a
GLES: Fixed missing defines.
2015-08-28 19:26:09 -07:00
Branimir Karadžić
444384469d
Moar texture formats...
2015-08-28 17:41:24 -07:00
Branimir Karadžić
ece46d71bc
Cleaned texture format names.
2015-08-28 14:48:51 -07:00
Branimir Karadžić
0cb21b8b83
GLES: Added workaround for broken emulator.
2015-08-28 11:17:26 -07:00
Branimir Karadžić
91c87e2149
Merge branch 'master' of github.com:bkaradzic/bgfx
2015-08-27 22:25:23 -07:00
Branimir Karadžić
0100107fc1
Cleanup.
2015-08-27 22:13:43 -07:00
Branimir Karadžić
07cdeea25b
GL: Added missing defines.
2015-08-27 19:35:07 -07:00
Branimir Karadžić
b7ebbb07b6
Added snorm texture formats.
2015-08-27 16:35:27 -07:00
Branimir Karadžić
89e55a0c7e
Added uniform size stats.
2015-08-27 11:06:45 -07:00
Branimir Karadžić
2cb4a52b36
D3D12: Fixed scissor.
2015-08-26 21:36:00 -07:00
Branimir Karadžić
093869941a
Cleanup.
2015-08-26 21:02:53 -07:00
Branimir Karadžić
b50e609f85
GLES: Fixed MRT.
2015-08-26 18:02:05 -07:00
Branimir Karadžić
c5adaec06c
D3D11: Fixed swap chain resize.
2015-08-26 12:44:40 -07:00
Branimir Karadžić
2c3bd9ce95
Cleanup.
2015-08-25 19:55:17 -07:00
Branimir Karadžić
125cb968fc
D3D11: Fixed frame buffer depth buffer creation.
2015-08-25 18:29:06 -07:00
Branimir Karadžić
52c89c8cc8
D3D11: Added multidraw indexed via AMD's AGS.
2015-08-25 15:39:31 -07:00
Branimir Karadžić
344e5b2ae3
Fixed alpharef uniform name.
2015-08-24 23:55:23 -07:00
Branimir Karadžić
b0116cfd30
Merge branch 'master' of github.com:bkaradzic/bgfx
2015-08-24 16:29:53 -07:00
Branimir Karadžić
d7368442ff
D3D12: Fixed alpharef.
2015-08-24 23:11:49 -07:00
Branimir Karadžić
9ded9412a8
Fixed alpharef.
2015-08-24 23:00:17 -07:00
Branimir Karadžić
3853645bf6
Cleanup.
2015-08-24 22:23:39 -07:00
Branimir Karadžić
32ab287ddc
Fixed VS2008 build.
2015-08-24 21:38:45 -07:00
Dario Manesku
3bee406cb5
Maybe it makes more sense for fields to be uint16_t since the result, m_attributes, is uint16_t.
2015-08-25 03:37:04 +02:00
Dario Manesku
fa7cd66f71
Fixing encodeAsInt field. Had two problems: 1# Bit field didn't got updated for Uint10. 2# Shifting by 8 on uint8_t. Problem was introduced on: 8da579ff99
.
2015-08-25 02:51:02 +02:00
Branimir Karadžić
7acf2b2616
Fixed compute program.
2015-08-24 15:40:11 -07:00
Branimir Karadžić
c93d8db523
Added program refcounting.
2015-08-24 14:52:21 -07:00
Branimir Karadžić
24fa6eee76
Cleanup.
2015-08-23 15:20:39 -07:00
Branimir Karadžić
ea88ba93fb
Cleanup.
2015-08-23 14:50:44 -07:00
Branimir Karadžić
7e7c4cc696
D3D12: Added batching with ExecuteIndirect.
2015-08-22 23:54:29 -07:00
Branimir Karadžić
7c063eb4fa
Fixed compiler warning.
2015-08-22 09:38:33 -07:00
Andrew Mac
88d7afe576
Bind all depth slices of 3D textures.
2015-08-22 09:11:50 -03:00
Branimir Karadžić
7eb18e4a10
asmjs: Fixed context resize.
2015-08-21 23:11:51 -07:00
Branimir Karadžić
0f076ad7cc
D3D9: Test if timer query is available.
2015-08-21 13:07:58 -07:00
Branimir Karadžić
3c6ee5fbcb
GL: Fixed MRT clear depth value.
2015-08-21 10:58:22 -07:00
Branimir Karadžić
d1a6a4723a
Cleanup.
2015-08-20 22:11:13 -07:00
Branimir Karadžić
63f3bd1ea2
Cleanup.
2015-08-20 12:30:59 -07:00
Branimir Karadžić
8ef8cd5d0e
Cleanup.
2015-08-19 20:51:30 -07:00
Branimir Karadžić
1e66ff0440
Added DXSDK header files.
2015-08-19 18:33:56 -07:00
Branimir Karadžić
51c10dd59d
Cleanup.
2015-08-19 13:34:07 -07:00
Branimir Karadžić
682a0519ef
GL: Don't test unsupported formats.
2015-08-18 16:28:08 -07:00
Branimir Karadžić
d4c7268fbc
Revert "Fix crash on some OpenGLES devices"
2015-08-18 10:49:50 -07:00
Jonny Hopper
8efcae4243
Fix crash on some OpenGLES devices
...
On some older OpenGLES devices, attempting to bind textures to
unsupported compressed formats can crash. So explicitly disable the
unsupported formats so this never happens.
2015-08-18 11:57:15 +01:00
Branimir Karadžić
b4c5bc8e02
Cleanup.
2015-08-17 18:09:27 -07:00
Branimir Karadžić
05f94f44be
Report HiDPI display support thru caps.
2015-08-17 18:07:00 -07:00
Branimir Karadžić
77b3c3843e
Added HiDPI reset flag.
2015-08-17 16:43:56 -07:00
Branimir Karadžić
93b3c700af
Fixed MinGW build.
2015-08-17 11:25:27 -07:00
Branimir Karadžić
fa5ebd5a02
Cleanup.
2015-08-16 21:31:04 -07:00
Branimir Karadžić
a1558e9986
GL: Fixed imports.
2015-08-16 21:27:15 -07:00
Branimir Karadžić
fc26d1c91c
Cleanup.
2015-08-16 16:14:12 -07:00
Branimir Karadžić
6d2e88567e
Cleanup.
2015-08-16 15:44:53 -07:00
Branimir Karadžić
79d2b81eb1
GL: Timer query check if result is available.
2015-08-16 15:44:13 -07:00
Branimir Karadžić
bc2077acb0
GL: Fixed GPU timer query.
2015-08-16 15:37:46 -07:00
Branimir Karadžić
ce191fbf1c
Cleanup.
2015-08-16 10:49:19 -07:00
Branimir Karadžić
d5d21b2a87
Cleanup.
2015-08-16 10:30:29 -07:00
Branimir Karadžić
08dc886c9b
Cleanup.
2015-08-16 00:14:41 -07:00
Branimir Karadžić
63e10f3357
D3D11: Fixed compute image mip selection.
2015-08-15 18:07:43 -07:00
Branimir Karadžić
11e7f59ba3
Cleanup.
2015-08-14 19:35:21 -07:00
Branimir Karadžić
5bca3eca85
Cleanup.
2015-08-14 19:32:36 -07:00
Branimir Karadžić
031e2f7fbf
Cleanup.
2015-08-14 11:01:22 -07:00
Kocsis Attila
5d5df77318
Metal backend: initial commit
2015-08-14 15:12:44 +02:00
Branimir Karadžić
06a865cb7b
D3D: Added state cache LRU.
2015-08-13 22:59:23 -07:00
Branimir Karadžić
976c152111
D3D9: Fixed max anisotropy caps.
2015-08-13 17:12:28 -07:00
Branimir Karadžić
b44189e046
Cleanup.
2015-08-12 22:54:42 -07:00
Branimir Karadžić
38820fd732
Cleanup.
2015-08-12 12:24:30 -07:00
Branimir Karadžić
737652be61
Cleanup.
2015-08-11 23:04:35 -07:00
Branimir Karadžić
1bcfb68f4f
Merge branch 'master' of cane:bkaradzic/bgfx
2015-08-11 22:19:03 -07:00
Branimir Karadžić
653e8eaa91
D3D12: Fixed resizing backbuffer.
2015-08-11 22:18:51 -07:00
Branimir Karadžić
16037218eb
GL: Fixed issue #474 .
2015-08-11 19:30:33 -07:00
Branimir Karadžić
f166412693
Fixed leak report.
2015-08-10 20:15:10 -07:00
Branimir Karadžić
780f2c614f
D3D9: Enabled vetex texture sampler.
2015-08-10 17:45:18 -07:00
Branimir Karadžić
d354494c1f
D3D11: Changed shadow sampler to SampleCmpLevelZero.
2015-08-10 17:44:33 -07:00
Branimir Karadžić
837b1f5461
D3D12: Added detection of sRGB texture formats.
2015-08-09 22:05:28 -07:00
Branimir Karadžić
e21d437c14
D3D1x: Ignore state creation debug messages.
2015-08-09 21:54:25 -07:00
Branimir Karadžić
0f9d6cefa5
DXBC: Remember SHEX chunk type.
2015-08-09 20:19:27 -07:00
Branimir Karadžić
a87cc953cf
DXBC: Fixed assembling extended instruction.
2015-08-09 20:12:22 -07:00
Branimir Karadžić
16bae53263
Fixed vertexdecl dump.
2015-08-09 17:55:28 -07:00
Branimir Karadžić
06a076fa2a
GL: Use MAX_DRAW_BUFFERS instead of MAX_COLOR_ATTACHMENTS.
2015-08-09 07:53:48 -07:00
Branimir Karadžić
f1b54919ec
D3D12: Fixed buffer update source offset.
2015-08-08 18:52:42 -07:00
Branimir Karadžić
b7f94dd1f3
Cleanup.
2015-08-08 18:09:39 -07:00
Branimir Karadžić
8e12de0e57
D3D12: Added temporary staging buffers.
2015-08-08 18:06:33 -07:00
Andrew Mac
933d59591b
Add support for 3D textures in compute shaders.
2015-08-08 09:49:12 -03:00
Branimir Karadžić
9c9dc90336
Fixed early texture destruction when multiple frame buffers take ownership.
2015-08-07 17:31:31 -07:00
Branimir Karadžić
f82f99b2a6
Fixed vertex attribute.
2015-08-07 11:37:52 -07:00
Branimir Karadžić
a302555bdc
Cleanup.
2015-08-06 20:29:04 -07:00
Branimir Karadžić
6a15efb958
D3D12: Added state change tracking.
2015-08-06 20:27:26 -07:00
Branimir Karadžić
3106cabe36
D3D9: Fixed framebuffer postReset.
2015-08-06 15:37:13 -07:00
Mikulas Florek
920a85a4cf
d3d9 framebuffer correctly handles bgfx::reset
2015-08-06 23:02:43 +02:00
Branimir Karadžić
4ce0c5703e
Added AttribType::Uint10 encoding/decoding.
2015-08-04 21:55:47 -07:00
Branimir Karadžić
f54ffcca42
GLES: Fixed build.
2015-08-04 20:06:01 -07:00
Branimir Karadžić
8da579ff99
Added vertex attrib Uint10.
2015-08-04 19:03:56 -07:00
Branimir Karadžić
d0b4657e15
GL: Fixed depth/stencil attachemnt logic.
2015-08-04 08:40:14 -07:00
Branimir Karadžić
a53e6270ae
D3D12: Present min/max stats reset.
2015-08-03 23:12:07 -07:00
Branimir Karadžić
b5bd7054d7
D3D12: Fixed screenshot.
2015-08-03 22:55:18 -07:00
Branimir Karadžić
f3c6cb23e8
Cleanup.
2015-08-03 22:39:50 -07:00
Branimir Karadžić
756e8c58f0
Cleanup.
2015-08-03 21:47:49 -07:00
Branimir Karadžić
91ac245fd5
Cleanup.
2015-08-03 21:40:58 -07:00
Branimir Karadžić
9238fad658
Cleanup.
2015-08-03 19:58:46 -07:00
Branimir Karadžić
f0d8a9b9f4
D3D12: Screenshot.
2015-08-02 17:01:21 -07:00
Branimir Karadžić
e4881f986c
Cleanup.
2015-08-02 12:50:57 -07:00
Branimir Karadžić
cfb8e8a13a
D3D12: Fixed command allocator leak.
2015-08-01 22:58:57 -07:00
Branimir Karadžić
6a0217bbf1
Fixed MinGW build. Issue #467 ,
2015-07-31 17:34:48 -07:00
Branimir Karadžić
acfe29432d
D3D9: Fixed timer query.
2015-07-31 16:22:47 -07:00
Branimir Karadžić
5b8a55b859
D3D12: Fixed refcount problem.
2015-07-30 21:20:46 -07:00
Branimir Karadžić
5f59978e6b
Added graceful error handling during initialization.
2015-07-30 18:36:12 -07:00
Branimir Karadžić
8adc099b02
Cleanup.
2015-07-30 11:36:26 -07:00
Branimir Karadžić
a6983339c8
Fixed release build.
2015-07-29 21:02:41 -07:00
Branimir Karadžić
c2398f34c0
Cleanup.
2015-07-29 19:50:25 -07:00
Branimir Karadžić
b702dcdf3c
D3D12: Initial commit.
2015-07-29 19:38:17 -07:00
Branimir Karadžić
874ff3c155
DX11: DXGI debug layers.
2015-07-29 14:49:24 -07:00
Branimir Karadžić
cb60707681
Added DX_NAME macro.
2015-07-28 23:18:25 -07:00
Branimir Karadžić
1a7f1a19cc
Fixed Linux build.
2015-07-28 22:35:01 -07:00
Branimir Karadžić
eecb4be9e9
Added memory size sanity check.
2015-07-28 21:39:26 -07:00
Branimir Karadžić
623624b456
Fixed issue #464 .
2015-07-28 20:56:41 -07:00
Branimir Karadžić
cb6cee9dd1
Updated trace callback.
2015-07-24 18:02:17 -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ć
6bdf5c4bad
Cleanup.
2015-07-21 18:15:12 -07:00
Ka Ming Chan
20a27012a0
improved the handling of iOS UIView resize / rotate by recreating the frame-buffer and render-buffer objects
2015-07-21 20:37:59 +08:00
Branimir Karadžić
f15008311a
Fixed issue #452 .
2015-07-17 11:12:41 -07:00
Branimir Karadžić
921a315c4d
Cleanup.
2015-07-16 20:28:43 -07:00
Branimir Karadžić
b98d3b6978
Added trace method to callback interface.
2015-07-16 17:39:02 -07:00
Branimir Karadžić
6c48b12a3f
Fixed issue #447 .
2015-07-02 17:05:51 -07:00
Branimir Karadžić
ff16073599
Fixed issue #445 .
2015-06-30 19:40:49 -07:00
Branimir Karadžić
f44f5b32b1
Added missing C99 API function.
2015-06-27 16:47:07 -07:00
Branimir Karadžić
4cf393bed6
Fixed MinGW warning.
2015-06-25 16:33:56 -07:00
Nick Porcino
f9907aaa58
Fix for Context not bound on OSX 10.10.3 #439
2015-06-24 22:54:47 -07:00
Branimir Karadžić
e84ecf6ee8
Fixed MSVC warning.
2015-06-24 10:20:01 -07:00
Branimir Karadžić
f36bfe2e4f
Added offset for updating dynamic buffers.
2015-06-23 16:40:38 -07:00
Branimir Karadžić
3eb0659898
Cleanup.
2015-06-22 20:45:50 -07:00
Branimir Karadžić
5e0948c7a8
Cleanup.
2015-06-21 20:00:00 -07:00
Branimir Karadžić
8109de5461
Cleanup.
2015-06-20 14:27:59 -07:00
Branimir Karadžić
f2e8d6c239
Fixed variable shadowing warning.
2015-06-19 21:08:32 -07:00
Branimir Karadžić
4408e44515
Merge branch 'master' of cane:bkaradzic/bgfx into dev
2015-06-19 20:01:42 -07:00
Branimir Karadžić
a39ba04e26
Fixed Linux build.
2015-06-19 19:55:23 -07:00
Branimir Karadžić
d7a9b56dc6
Added ObjC amalgamated file.
2015-06-19 17:34:01 -07:00
Branimir Karadžić
5ebe50c705
Cleanup.
2015-06-18 22:33:06 -07:00
Branimir Karadžić
c80cc04445
Removed mapped constant buffers (it doesn't improve performance).
2015-06-18 20:39:16 -07:00
Branimir Karadžić
faf3164ecb
Fixed issue #436 .
2015-06-17 10:04:12 -07:00
Branimir Karadžić
527ab0bcc1
shaderc: Metal fixes.
2015-06-12 15:22:01 -07:00
Branimir Karadžić
3dd3a86a4d
Fixed amalgamated build.
2015-06-11 14:26:01 -07:00
Branimir Karadžić
85de7fa148
Fixed VS2008 build.
2015-06-11 20:16:38 -07:00
Branimir Karadžić
52cfaf0aaa
Added Metal renderer backend stub.
2015-06-11 09:38:17 -07:00
Kocsis Attila
e97be61a75
added iOS GL extension function import
2015-06-10 15:52:12 +02:00
Branimir Karadžić
ef143a1bb6
Fixed issue #429 .
2015-06-09 19:57:10 -07:00
Branimir Karadžić
466c76071a
Cleanup.
2015-06-05 10:43:43 -07:00
Branimir Karadžić
f81dadd9b8
Fixed shadowing variable warning.
2015-06-05 09:54:14 -07:00
Branimir Karadžić
d2204e5cf2
Merge pull request #423 from mendsley/vr_viewportfix
...
VR: Fix skewed viewports with buffered eye textures
2015-06-05 09:14:19 -07:00
Matthew Endsley
05d70ea99d
VR: Fix skewed viewports with buffered eye textures
...
Bug fix for #419
Viewport calculations need to take VR eye buffer size into
account. Noticable at the older 100px boundary. Skewing still
exists at newer 8px buffer, but is harder to notice.
Eventually causes pretty bad eye strain, though.
Easily reproduced by setting the buffer to something obscenely
large, such as 2048.
2015-06-05 02:12:24 -07:00
Matthew Endsley
9a1b1f892c
VR: Properly support MSAA in OVR builds
...
Fixes #338
Create the swap chain without MSAA, and the eye textures
with MSAA. The core issue was using the surface description
for the backbuffer for the DSV on the eye textures which did
not match.
This meethod follows both the oculus and openvr guidance on MSAA -
MSAA is configured on the eye render targets, but not on the swap
chain.
2015-06-05 00:30:05 -07:00
Branimir Karadžić
ad4b2f134f
Merge branch 'master' of github.com:bkaradzic/bgfx
2015-06-04 22:26:09 -07:00
Branimir Karadžić
132b0c9a1b
Cleanup.
2015-06-04 22:24:45 -07:00
Branimir Karadžić
66ad074f90
Merge pull request #420 from mendsley/vr_eye_bleeding
...
VR: Add buffer between left/right eye textures
2015-06-04 19:23:59 -07:00
Matthew Endsley
9020994470
VR: Add buffer between left/right eye textures
...
This prevents bleeding across the individual viewports
when the oculus SDK applies distortion mapping. The current
reccommended values are 100px for SDK <= 0.5 and 8px for > 0.5
See: http://static.oculus.com/sdk-downloads/documents/0.6.0/Oculus_Developer_Guide.pdf
in the "Bugs Fixed Since the Last Release" section.
For an example of this artifact, see the correct scene render:
![Imgur](http://i.imgur.com/fZZExg8.jpg )
followed by a scene that bleeds the left eye into the right eye:
![Imgur](http://i.imgur.com/dZalmPS.jpg )
2015-06-04 18:44:31 -07:00
Matthew Endsley
acdaefb161
VR: Fix OVR_VERSION macro.
...
Was previously supplying (major,minor,build) when it is
actuall (product,major,minor).
For example, the 0.5.0 SDK has the following:
```
#define OVR_PRODUCT_VERSION 0
#define OVR_MAJOR_VERSION 5
#define OVR_MINOR_VERSION 0
#define OVR_PATCH_VERSION 1
#define OVR_BUILD_NUMBER 0
```
2015-06-04 18:41:35 -07:00
Matthew Endsley
1e604e8f38
VR: Add device resolution to HMD. Init at startup.
...
BREAKING: bgfx::getHMD() now returns a valid pointer
if the VR runtime was initialized. This is different
from existing behavior where getHMD returned NULL until
a bgfx::reset(... BGFX_RESET_HMD) was issued. Applications
must now check HMD::flags for the current state of the VR
runtime. The following code has the code change required:
`const bgfx::HMD* hmd = bgfx::getHMD()
if (NULL != hmd)`
becomes:
`const bgfx::HMD* hmd = bgfx::getHMD()
if (NULL != hmd && 0 != (hmd->flags & BGFX_HMD_RENDRERING))
{
// rendering logic
}`
See the updated examples for details.
This allows applications to create the appropriately
sized back buffer for the HMD device by using the new device
resolution fields HMD::deviceHeight and HMD::deviceWidth.
These values report the pixel resolution of the attached
HMD hardware.
This also allows applications to query the reported HMD
resolution immediately after bgfx::init. This prevents
the device from being cycled which generates rendring
artifacts on startup - namely flashing back to a black
screen and reseting the Health+Warning disaply.
This involves initialization the ovrHmd device on
initialization, but deferring rendering until
postReset has been called. This adds an addiional
memory overhead of 32k to builds defining BGFX_CONFIG_USE_OVR.
The overhead for current builds is ~1.9MB for calls to
ovr_Initialize, so the additional overhead is pretty
trivial (+1.8%)
2015-06-03 15:39:09 -07:00
Branimir Karadžić
e1a564ca72
Fixed noop renderer.
2015-06-02 23:29:26 -07:00
Branimir Karadžić
886dd485c0
Cleanup.
2015-05-30 15:58:45 -07:00
Branimir Karadžić
5d22798482
Patching GL shaders to avoid compiler warnings.
2015-05-30 10:07:07 -07:00
Branimir Karadžić
ff01992cb7
Refactored uniform types.
2015-05-28 15:27:00 -07:00
Miodrag Milanovic
b925007b9d
Fix for MINGW compile (nw)
2015-05-27 12:27:00 +02:00
Mike Popoloski
b32fc0ec27
Fixing display bug when using flip-sequential swap effect.
2015-05-24 13:29:21 -04:00
Branimir Karadžić
d58d62401e
Added texture size check.
2015-05-24 10:20:21 -07:00
Branimir Karadžić
0c78fe8073
Cleanup.
2015-05-21 17:58:21 -07:00
Branimir Karadžić
a361918374
Fixed issue #392 .
2015-05-21 17:49:02 -07:00
Branimir Karadžić
cd234013ce
Fixed mach TLS issue.
2015-05-21 16:50:14 -07:00
Branimir Karadžić
57f61b7e32
Added ability to run in single-thread mode without rebuild.
2015-05-21 16:45:24 -07:00
Branimir Karadžić
ab22eca640
D3D9: Fixed clear quad.
2015-05-20 17:02:19 -07:00
Branimir Karadžić
2e56304280
Fixed leak in single-threaded mode.
2015-05-19 15:52:47 -07:00
Branimir Karadžić
2048aef329
Cleanup.
2015-05-18 20:34:21 -07:00
Branimir Karadžić
11868f704a
GLES31: Fixed image format test.
2015-05-18 20:24:37 -07:00
Branimir Karadžić
6b8964acf7
GL: Added image format test.
2015-05-18 14:35:05 -07:00
Branimir Karadžić
c4231c9731
Added framebuffer support test.
2015-05-18 12:39:42 -07:00
Matthew Endsley
b124334343
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-17 13:08:33 -07:00
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
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ć
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ć
cacb332b42
GL: Enabled texture check for all platforms.
2015-05-12 23:03:17 -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
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ć
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
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