Branimir Karadžić
b9e393e6dd
Fixed issue #1315 .
2018-01-16 17:19:29 -08:00
Branimir Karadžić
49a75f2fb1
bx math API cleanup.
2018-01-13 15:33:50 -08:00
Branimir Karadžić
e4cde19f35
Fixed issue #1307 .
2018-01-12 20:26:23 -08:00
Branimir Karadžić
f44c8e2b14
Happy New Year!
2018-01-01 11:16:06 -08:00
Branimir Karadžić
6e70fc172b
Cleanup.
2017-12-14 09:05:51 -08:00
Branimir Karadžić
9e00fad8b3
WIP: Init params.
2017-12-07 21:52:52 -08:00
Branimir Karadžić
6adb0090d0
Added resource stats.
2017-12-03 19:42:06 -08:00
Branimir Karadžić
0e5f3457c3
Added support for texture direct access.
2017-12-02 22:12:27 -08:00
Branimir Karadžić
547d1d2b11
Cleanup.
2017-12-02 18:15:31 -08:00
Branimir Karadžić
7e1c2623fc
Fixed dynamic index buffer compute support.
2017-12-01 16:28:35 -08:00
Branimir Karadžić
cb60295e1b
Reserve 10 bits in sort key for view.
2017-11-27 19:38:36 -08:00
Branimir Karadžić
3533da7225
Fixed view id remapping.
2017-11-27 16:34:27 -08:00
Branimir Karadžić
7384171900
Fixed view id remapping.
2017-11-27 15:57:31 -08:00
Branimir Karadžić
953d4984ac
Cleanup.
2017-11-27 13:11:57 -08:00
Branimir Karadžić
b3fcc8350b
Fixed issue #1281 .
2017-11-27 09:06:57 -08:00
Branimir Karadžić
77c00da989
Changed API to use ViewId (uint16_t) instead of uint8_t.
2017-11-24 11:21:51 -08:00
Branimir Karadžić
00c81fa205
Merge branch 'encoder' of github.com:bkaradzic/bgfx into encoder
2017-11-10 20:30:25 -08:00
Branimir Karadžić
7abc5af763
Cleanup.
2017-11-10 20:30:16 -08:00
Branimir Karadžić
70299a681f
Cleanup.
2017-11-09 21:07:55 -08:00
Branimir Karadžić
d2d4c8aebb
Cleanup.
2017-11-09 20:21:56 -08:00
Branimir Karadžić
a241daa114
Updated thread funcs to match bx.
2017-11-04 15:18:33 -07:00
Branimir Karadžić
6a278175ff
Cleanup.
2017-11-04 10:32:31 -07:00
Branimir Karadžić
a680845a98
Cleanup.
2017-11-03 23:48:40 -07:00
Branimir Karadžić
6480a62844
Added encoder stats.
2017-11-02 22:06:39 -07:00
Branimir Karadžić
ee6b520cad
Merge branch 'master' into encoder
2017-11-02 18:21:57 -07:00
Branimir Karadžić
a5f36f526c
Fixed dynamic vertex buffer allocation failure.
2017-11-02 18:21:40 -07:00
Branimir Karadžić
2c2e5ef36c
MT encoder WIP.
2017-11-01 22:34:11 -07:00
Branimir Karadžić
2bbb5a41bc
Moved all validation into encoder interface.
2017-10-30 21:15:00 -07:00
Branimir Karadžić
fc7cf00982
Merge branch 'master' into encoder
2017-10-30 08:43:22 -07:00
Branimir Karadžić
85322904a9
Moved internal view state into single struct.
2017-10-30 08:39:25 -07:00
Branimir Karadžić
0b20e92797
Encoder API WIP.
2017-10-28 18:43:21 -07:00
Branimir Karadžić
dee11c9655
Fixed program deduplication issue.
2017-10-27 17:57:48 -07:00
Branimir Karadžić
734ff0ad34
Cleanup.
2017-10-26 21:41:40 -07:00
Branimir Karadžić
f6a97f9d87
Changed setViewOrder API to specify type required for array.
2017-10-22 18:37:51 -07:00
Branimir Karadžić
96a1d0859b
Cleanup.
2017-10-11 09:16:59 -07:00
Branimir Karadžić
cdd658b44c
Cleanup.
2017-10-09 21:41:59 -07:00
Branimir Karadžić
d4e3828e80
Cleanup.
2017-10-09 21:17:58 -07:00
Branimir Karadžić
2008a041ab
Cleanup.
2017-10-09 21:08:03 -07:00
Branimir Karadžić
be158a6055
Cleanup.
2017-10-09 20:10:03 -07:00
Branimir Karadžić
426c56b635
Moving uniform/query set validation into encoder.
2017-10-08 22:02:21 -07:00
Branimir Karadžić
61cee3d3bb
Refactoring internal frame structure to separate submit encoder.
2017-10-08 20:47:51 -07:00
Branimir Karadžić
7a32c14157
Cleanup.
2017-10-07 21:19:47 -07:00
Branimir Karadžić
e1a9422445
Cleanup.
2017-10-07 18:17:16 -07:00
Branimir Karadžić
cfa81f314a
Cleanup.
2017-10-06 21:50:38 -07:00
Branimir Karadžić
4cdab3e971
Exposed internal profiler callbacks.
2017-10-06 18:07:40 -07:00
Branimir Karadžić
b5af383cf8
Cleanup.
2017-09-23 16:27:16 -07:00
Branimir Karadžić
4b4b1c31a6
Added perf timer for API thread.
2017-09-22 21:39:16 -07:00
Branimir Karadžić
ad4be46c79
Fixed program ref counting issue.
2017-09-18 18:25:08 -07:00
Branimir Karadžić
4f79945ebf
Fixed sequential sort.
2017-09-15 13:01:11 -07:00
Branimir Karadžić
dbbb670d7f
Added separate draw sort key for sequential view mode.
2017-09-14 18:59:49 -07:00
Branimir Karadžić
b88e566b80
Cleanup.
2017-09-06 19:04:04 -07:00
Branimir Karadžić
3bd460d39a
Fail to create static vertex buffer when VertexDecl is incorrect.
2017-09-06 16:20:35 -07:00
Branimir Karadžić
3aec2b89bf
Added bgfx::setName to set resource debug name.
2017-08-30 21:46:57 -07:00
Branimir Karadžić
0286e209dd
D3D9: Implemented per view GPU profiler.
2017-08-27 20:34:00 -07:00
Branimir Karadžić
f0971eda83
Removed Remotery.
2017-08-20 14:24:15 -07:00
Branimir Karadžić
07bd69c56c
Fixed compute program shader ref counting.
2017-08-14 18:25:57 -07:00
Branimir Karadžić
1d5c3386fe
Fixed shader ref counting.
2017-08-07 17:41:08 -07:00
Branimir Karadžić
bed131c879
Cleanup.
2017-07-28 19:50:33 -07:00
Branimir Karadžić
54c8d69590
Fixed shader ref counting.
2017-07-28 16:43:16 -07:00
Branimir Karadžić
6225876692
If hash match reuse existing shaders instead creating.
2017-07-28 09:43:45 -07:00
Branimir Karadžić
8272809534
Added 32-bit dispatch dimension.
2017-07-27 14:57:31 -07:00
Branimir Karadžić
3e212b519f
Moving code around and renaming files.
2017-07-15 21:01:08 -07:00
Branimir Karadžić
58d915d88d
Cleanup.
2017-06-20 21:44:23 -07:00
Branimir Karadžić
236ef4b875
Fixed shader binary truncation. Issue #1170 .
2017-06-20 20:34:41 -07:00
Branimir Karadžić
0780a3a7c9
Encoding sort key depending on view mode.
2017-06-15 16:41:59 -07:00
Branimir Karadžić
d8968e1214
Updated sort key.
2017-06-14 22:29:12 -07:00
Branimir Karadžić
6910ddba9e
WIP: Adding more sort key modes.
2017-06-14 18:10:42 -07:00
Branimir Karadžić
c39c6121a6
Removed obsolete platform.
2017-06-11 22:54:52 -07:00
Branimir Karadžić
07d799f72e
Renamed constants to new style.
2017-06-09 21:57:08 -07:00
Branimir Karadžić
24569934a1
Added color2/3 attributes.
2017-06-06 17:25:17 -07:00
Branimir Karadžić
b0a122449c
Cleanup.
2017-05-18 17:44:31 -07:00
Branimir Karadžić
b72b3df894
Fixed issue #1135 .
2017-05-18 08:55:52 -07:00
Branimir Karadžić
6e9e862565
Renaming string functions.
2017-04-16 21:56:17 -07:00
Branimir Karadžić
814d04fcc5
noop: Pretend all features are available.
2017-04-08 10:17:55 -07:00
Branimir Karadžić
c44c68ed4c
Release memory inside any function that takes Memory argument and it could fail when out of handles.
2017-04-07 20:02:31 -07:00
Branimir Karadžić
8b14a7e977
Added fall back to noop renderer when device is removed.
2017-04-07 19:07:20 -07:00
Branimir Karadžić
81f9162d58
Moved bindings outside of render item.
2017-04-06 20:32:48 -07:00
Branimir Karadžić
5ffdd2de23
Cleanup.
2017-04-06 19:40:22 -07:00
Branimir Karadžić
e5395db19c
Rename setShaderBuffer to setBuffer.
2017-04-06 19:03:16 -07:00
PyryM
83e30ec609
api changes ( #1107 )
...
d3d11 + opengl implementations
everything else will have very strange behavior if you try to bind a
buffer to a shader
avoid compiler error/warning about unused parameter
copy paste mistake
add in function for index buffers as well
Might as well cover all the bases; index buffers are also a convenient
way to create int-typed buffers, since there aren't int32 vertex
attributes.
get rid of precision loss warnings
d3d12 bindShaderBuffer implementation
throw an assert on d3d9 at least
BX_CHECK on metal as well (no compute support atm)
simplify api since access is restricted to read
hide from public api at the moment
move comment into correct branch of if
Feature: bind vertex/index buffers for vertex/fragment shaders
2017-04-06 18:59:30 -07:00
Branimir Karadžić
8ce85d2462
Added bimg dependency.
2017-04-03 22:42:27 -07:00
Branimir Karadžić
96fec2cbf3
Fixed vertex decl cleanup.
2017-03-30 22:07:23 -07:00
Branimir Karadžić
28c0cb3ace
Always create separate dynamic vertex buffer for compute.
2017-03-30 21:27:05 -07:00
Branimir Karadžić
139c1353ee
Cleanup.
2017-03-29 21:53:09 -07:00
Branimir Karadžić
31312f897d
Fixed VertexDecl tracking.
2017-03-29 17:54:38 -07:00
Branimir Karadžić
294f15fd5e
Allow updating RO compute buffers.
2017-03-28 17:35:16 -07:00
Branimir Karadžić
9b3031ab35
Force at least 1 uniform element.
2017-03-27 19:27:52 -07:00
Branimir Karadžić
7a290e0de6
Cleanup.
2017-03-21 00:14:48 -07:00
Branimir Karadžić
9c881298a9
Cleanup.
2017-03-08 20:04:40 -08:00
Branimir Karadžić
b0e13445db
Exposed occlusion query result.
2017-03-06 17:23:22 -08:00
Branimir Karadžić
a1184d53c5
Invalidate occlusion queries in flight when new occlusion query with the same id is created.
2017-03-03 18:05:36 -08:00
Branimir Karadžić
1444704901
Cleanup.
2017-03-02 19:29:34 -08:00
Branimir Karadžić
86fc54ccfc
Added ability to specify swap chain for screenshot.
2017-03-02 18:02:14 -08:00
Branimir Karadžić
7e76736082
Return bgfx::RenderFrame::Timeout when internal semaphore times out and skips rendering.
2017-03-01 20:12:47 -08:00
Branimir Karadžić
2e3bdc619e
Fixed projection matrix.
2017-02-22 22:17:44 -08:00
Branimir Karadžić
0827c42dc6
Added consistent depth clear value between GL and DX (and other APIs).
2017-02-22 21:04:24 -08:00
Branimir Karadžić
6cd89105cb
Clamp view rect.
2017-02-16 14:49:38 -08:00
Branimir Karadžić
3a43edcf30
Defer occlusion query destruction to avoid usage overlap.
2017-02-14 18:20:49 -08:00
Branimir Karadžić
c4eec4fa69
Cleanup.
2017-02-11 09:28:38 -08:00
Branimir Karadžić
fab74e9c4a
Cleanup.
2017-02-11 09:12:16 -08:00
Branimir Karadžić
b99ebb9535
Cleanup.
2017-02-08 19:55:31 -08:00
Branimir Karadžić
aa2a9deb5f
Cleanup.
2017-02-08 18:17:59 -08:00
Branimir Karadžić
1d7b32e464
Fixed typo.
2017-02-03 18:25:35 -08:00
Branimir Karadžić
a8cf2f86a9
Cleanup.
2017-01-20 16:34:27 -08:00
Branimir Karadžić
8a1c9a2f27
Cleanup.
2017-01-20 16:28:12 -08:00
Branimir Karadžić
eccf6b7b1c
Cleanup.
2017-01-19 17:36:50 -08:00
Branimir Karadžić
e434222772
Fixed 0x0 backbuffer.
2017-01-11 18:46:53 -08:00
Branimir Karadžić
3b83f53ab1
Happy New Year!
2017-01-01 00:18:41 -08:00
Branimir Karadžić
07aae82d16
Replaced checkAvail* with getAvail* API.
2016-12-22 16:18:44 -08:00
Branimir Karadžić
ced949ae00
Fixed warning.
2016-12-14 23:23:05 -08:00
Branimir Karadžić
1569122d91
Cleanup.
2016-12-10 15:42:12 -08:00
Branimir Karadžić
90cc7640fb
Fixed out of bound access when running out of matrix cache.
2016-12-06 14:47:27 -08:00
Branimir Karadžić
8da9e54957
Renamed bgfxdefines.h to defines.h, and bgfxplatform.h to platform.h.
2016-12-05 19:52:01 -08:00
Branimir Karadžić
0e933091ed
Added ANSI escape codes for debug text. Added info about backbuffer and debug text width/height.
2016-11-28 21:00:57 -08:00
Branimir Karadžić
69759a0116
Cleanup.
2016-11-22 17:55:45 -08:00
Branimir Karadžić
01f16797c7
Fixed build without tinystl.
2016-11-22 09:08:21 -08:00
Branimir Karadžić
706facc788
Fixed blit with view remapping.
2016-11-20 14:29:37 -08:00
Branimir Karadžić
3f98a93463
Renamed bgfx::setViewRemap to bgfx::setViewOrder.
2016-11-20 12:56:11 -08:00
Branimir Karadžić
63aa96f113
Cleanup.
2016-11-20 12:50:28 -08:00
Branimir Karadžić
34db235454
API change: Added getTexture from FrameBufferHandle, and removed all helper APIs that were using FrameBufferHandle and attachment. Related to issue #975 .
2016-11-15 20:23:52 -08:00
Branimir Karadžić
616472b742
Don't flip after each timeout.
2016-11-08 18:01:26 -08:00
Branimir Karadžić
d2f3f0e1b4
Cleanup.
2016-11-07 19:22:35 -08:00
Branimir Karadžić
b9c1deceee
Detect double freeing resources.
2016-11-03 16:52:34 -07:00
Branimir Karadžić
a3113ab94c
Added ability to retrieve uniform info.
2016-11-02 00:12:40 -07:00
Branimir Karadžić
1bf5bdd376
Cleanup.
2016-10-29 10:36:09 -07:00
Branimir Karadžić
9f2844e297
Cleanup.
2016-10-25 20:16:00 -07:00
Branimir Karadžić
a43f63e8e2
Cleanup.
2016-10-24 10:58:24 -07:00
benoitjacquier
9a0e685861
Merge branch 'master' of https://github.com/benoitjacquier/bgfx into readtexture_mip
2016-10-22 12:26:49 +02:00
benoitjacquier
74298e9940
readTexture mip support / D3D9 / D3D11
2016-10-21 17:22:05 +02:00
Branimir Karadžić
23d592a862
Cleanup.
2016-10-19 18:11:47 -07:00
Branimir Karadžić
6cda5f1740
Cleanup.
2016-10-18 17:58:42 -07:00
Branimir Karadžić
98f398fd51
Fixed build.
2016-10-13 19:17:41 -07:00
Branimir Karadžić
599992c8f1
Added ability to specify api thread wait timeout. Fixed HLSL compiler.
2016-10-13 15:01:27 -07:00
Branimir Karadžić
272195da3f
Updated embedded shaders.
2016-10-05 20:41:25 -07:00
Branimir Karadžić
9f53d33e80
Renamed null renderer to noop.
2016-09-24 08:35:31 -07:00
Branimir Karadžić
55dc1e2168
Added GNM renderer stub.
2016-09-24 08:31:49 -07:00
Branimir Karadžić
50d867bbc2
Added limits info to caps.
2016-09-24 00:29:59 -07:00
Branimir Karadžić
37f00de7de
Fixed issue #917 .
2016-09-15 20:54:00 -07:00
Branimir Karadžić
9181888783
Removed vertex stream assert. Issue #917 .
2016-09-15 08:33:41 -07:00
Branimir Karadžić
1ae77b0cfb
WIP: Adding vertex stream support.
2016-09-12 19:38:29 -07:00
Branimir Karadžić
425868f391
Cleanup.
2016-09-08 17:00:16 -07:00
Branimir Karadžić
0d981316f8
Switched use of stl::unordered_map to new HandleHashMap.
2016-09-06 22:42:45 -07:00
Branimir Karadžić
08438fa567
texturev: Added texture array support.
2016-08-23 22:06:50 -07:00
Branimir Karadžić
8809a190ef
Fixed calcTextureSize.
2016-08-22 14:17:08 -07:00
Branimir Karadžić
7537b705e5
GL: Added support for texture array.
2016-08-21 14:03:16 -07:00
Branimir Karadžić
63e79499fa
Cleanup.
2016-08-20 08:10:20 -07:00
Branimir Karadžić
c98be90bf5
WIP: Texture array support.
2016-08-19 21:05:37 -07:00
Branimir Karadžić
2eff8e381b
Updated Remotery.
2016-07-26 22:51:30 -07:00
Branimir Karadžić
08b5e9c851
Fixed mipmap chain generation for textures created with backbuffer ratio size.
2016-07-21 12:57:14 -07:00
Branimir Karadžić
0494d0362c
Cleanup.
2016-06-27 19:31:54 -07:00