Commit Graph

3799 Commits

Author SHA1 Message Date
Branimir Karadžić
d7026e8f0c Reverted embedded shader. 2016-08-09 22:54:18 -07:00
Olli Wang
b9810aca70 Updates nanovg backend to adopt premultiplied alpha. (#873)
This commit updates nanovg's bgfx backend to adopt premultiplied alpha as the default blending mode just like the original nanovg. Both the fragment shader and the `glnvg__convertPaint()` function are updated to match the original nanovg counterpart.

However, the binary file of the fragment shader is built on Mac so DirectX support is missing.
2016-08-09 22:44:04 -07:00
Stuart Carnie
6cff1b2fb7 metal: synchronize textures with READ flag (#870)
* metal: synchronize textures with READ flag

* Only necessary for desktop
2016-08-08 16:33:45 -07:00
Branimir Karadžić
dd0d563417 Fixed build. 2016-08-08 16:33:17 -07:00
Branimir Karadžić
b4cb6a352e Fixed clang4 error. 2016-08-08 13:17:07 -07:00
Branimir Karadžić
c25a273e29 Cleanup. 2016-08-08 09:23:42 -07:00
Olli Wang
f11d954bc1 Implements nanovg's framebuffer helper functions. (#869)
This commit ports nanovg's helper functions for rendering stuff in framebuffer defined in `nanovg_gl_utils.h`. Also, a new `nvgState()` function is created for bgfx backend so it is possible to blend between framebuffers, which feature is long requested but not yet supported in original nanovg. The `nvgState()` function can be called between `nvgBeginFrame()` and `nvgEndFrame()`.
2016-08-08 08:33:37 -07:00
Branimir Karadžić
41ce24c078 Updated ImGui. 2016-08-07 10:18:18 -07:00
Branimir Karadžić
b269f61f8b Quiet GCC bogus warning. 2016-08-06 20:07:03 -07:00
Branimir Karadžić
59fdc3c998 Merge branch 'master' of github.com:bkaradzic/bgfx 2016-08-06 14:06:38 -07:00
Branimir Karadžić
e7a32654f4 Updated ImGui. 2016-08-06 14:06:11 -07:00
Olli Wang
ae9dddcff4 Allows to change the opaque property of CAEAGLLayer. (#866)
This commit gives custom `CAEAGLLayer` instance a chance to set the `opaque` property through the `style` property. Currently, the `GlContext` implementation for `CAEAGLLayer` always sets the layer's `opaque` property to `true` explicitly no matter what the original value is. Though setting the layer as opaque does help for performance, there are times this option should be turned off by decision. Now the `opaque` property is respected if setting in the `style` dictionary.
2016-08-05 11:32:30 -07:00
Olli Wang
fa73aa4b09 Adds iOS device's Retina screen support for nanovg. (#865)
This commit fixes the bug that the bgfx does not respect the `devicePixelRatio` parameter passed to nanovg's `nvgBeginFrame()` function. The problem is caused by the `bgfx::setViewRect()` call defined in the `nvgRenderViewport()` function, as it should take size in consideration of the `devicePixelRatio` value.

However, this commit does not fix nanovg's example app because currently there is no easy way to pass the scale value to the `ExampleNanoVG::update()` method as it calls `nvgBeginFrame()`.
2016-08-05 09:50:02 -07:00
Branimir Karadžić
d876f88a89 Merge pull request #864 from olliwang/nanovg
Moves additional bgfx nanovg functions to a separate header file.
2016-08-05 09:14:13 -07:00
Olli Wang
c960c46564 Moves additional bgfx nanovg functions to a separate header file.
This commit moves the additional nanovg functions for bgfx to a separate header file, so it is possible to compile the original nanovg  source files with bgfx in a custom build environment.
2016-08-05 17:26:06 +08:00
Branimir Karadžić
7de947c7c0 Updated docs. 2016-08-04 08:35:14 -07:00
Branimir Karadžić
f7060b66ee Cleanup. 2016-08-03 21:57:56 -07:00
Branimir Karadžić
cc8d0c5fff Added topologySortTriList. 2016-08-02 20:37:21 -07:00
Branimir Karadžić
911fb72f3a Updated RenderDoc. 2016-08-01 17:21:17 -07:00
Branimir Karadžić
68ae67ff72 Updated ImGui. 2016-07-31 10:06:38 -07:00
Branimir Karadžić
a6cac1ceb3 Updated ImGui. 2016-07-30 21:39:51 -07:00
Branimir Karadžić
9597a366c0 Updated ImGui. 2016-07-29 19:22:25 -07:00
Branimir Karadžić
f2e46a5c65 D3D9: Fixed assert when frame buffer texture is resized. 2016-07-28 21:19:08 -07:00
Branimir Karadžić
86084dc65f GL: Detect autogen mipmap texture format support. 2016-07-27 21:22:23 -07:00
Branimir Karadžić
c3c289d2d8 Updated Remotery. 2016-07-27 20:08:16 -07:00
Branimir Karadžić
484050ffea Fixed build. 2016-07-26 23:24:49 -07:00
Branimir Karadžić
8541d8d16b Updated Remotery. 2016-07-26 22:53:46 -07:00
Branimir Karadžić
2eff8e381b Updated Remotery. 2016-07-26 22:51:30 -07:00
Branimir Karadžić
ab12529c6e Fixed build error. 2016-07-26 20:43:21 -07:00
Branimir Karadžić
c9e0779adc Fixed warnings. 2016-07-26 11:07:06 -07:00
attilaz
742dad2b90 non-blockig texture/vb/ib update when possible (#856)
set vertex/fragment texture only when required per program
2016-07-26 09:29:07 -07:00
Branimir Karadžić
4fbf1c0ca2 Cleanup. 2016-07-25 19:09:52 -07:00
Branimir Karadžić
c81ea08e1a D3D11: Resolve MSAA. 2016-07-25 19:00:50 -07:00
Branimir Karadžić
fd6e6d8ddd Cleanup. 2016-07-25 09:40:23 -07:00
attilaz
9d6364e6ee metal (#855)
- msaa framebuffer
- capture (wip)
- read_back
- 30-picking fixes
2016-07-25 09:39:41 -07:00
Branimir Karadžić
4744a44880 Cleanup. 2016-07-24 19:49:27 -07:00
Branimir Karadžić
972a8c029e Cleanup. 2016-07-24 17:17:12 -07:00
Branimir Karadžić
11e66f2383 Cleanup. 2016-07-24 16:45:34 -07:00
Branimir Karadžić
6c767eed9c Cleanup. 2016-07-24 16:18:26 -07:00
Branimir Karadžić
6cd0d95adb Renamed example to shorter name. 2016-07-24 16:08:59 -07:00
Branimir Karadžić
09e791be03 Rebuilt shaders. 2016-07-24 16:07:09 -07:00
Branimir Karadžić
5b3c9609cb Cleanup. 2016-07-24 15:50:42 -07:00
jcherlin
f56cf4c88e Added RSM sample. (#854)
* Added RSM sample.
2016-07-24 15:39:50 -07:00
Branimir Karadžić
b7a0030c20 GL: Added texture mip autogen. 2016-07-23 16:16:43 -07:00
Branimir Karadžić
2563382301 WIP: Added autogenerate mipmaps for render targets with mips. 2016-07-22 17:42:55 -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ć
e65816831f Updated ImGui. 2016-07-20 21:32:46 -07:00
Branimir Karadžić
b7150304d3 Updated ImGui. 2016-07-18 21:18:00 -07:00
Branimir Karadžić
ce878f9180 Renaming float4_t to simd128_t. 2016-07-18 19:03:25 -07:00
Branimir Karadžić
f8e1780c2b Updated ImGui. 2016-07-16 17:21:45 -07:00