Branimir Karadžić
3b01df7293
Cleanup.
2014-10-13 20:05:23 -07:00
Branimir Karadžić
c7901436a5
Fixed issue #169 . C99 function name mismatch between header and implementation.
2014-10-12 09:58:57 -07:00
Branimir Karadzic
4ba9212d35
Cleanup.
2014-10-11 22:24:07 -07:00
Branimir Karadžić
ea571fd754
Cleanup.
2014-10-11 15:39:53 -07:00
Branimir Karadzic
1def740a7c
Fixed unused variable warning.
2014-10-11 14:14:12 -07:00
Branimir Karadžić
f1533ccc74
Removed emulated flags from caps.
2014-10-11 12:51:32 -07:00
Branimir Karadžić
9126ca8fd7
Added DX12 stub.
2014-10-11 11:24:37 -07:00
Branimir Karadzic
3dd237aefa
Updated docs.
2014-10-11 10:12:27 -07:00
Branimir Karadzic
a96837c1ea
Fixed VS2013 warning.
2014-10-10 09:26:58 -07:00
Branimir Karadzic
5ea84e8274
Added allocTransform API to return pointer to internal matrix cache.
2014-10-08 20:13:57 -07:00
Branimir Karadzic
f5b8d636a6
GL: Fixed constants commit.
2014-10-08 19:58:29 -07:00
Branimir Karadžić
51d8daf762
Fixed constant buffer allocation logic.
2014-10-08 19:36:59 -07:00
Branimir Karadžić
14a71bd477
Cleanup.
2014-10-07 22:05:35 -07:00
Branimir Karadžić
b1878edd2e
Cleanup.
2014-10-06 22:10:55 -07:00
Branimir Karadžić
493c964423
Cleanup.
2014-10-06 19:21:08 -07:00
Branimir Karadžić
d90b754bae
Cleanup.
2014-10-05 18:20:05 -07:00
Branimir Karadžić
a05acba1ee
Added state cache info to debug panel.
2014-10-05 00:14:21 -07:00
Branimir Karadzic
8dab207b36
OSX: Fixed window resize.
2014-10-01 20:25:56 -07:00
Branimir Karadžić
1b5454bd51
Fixed 22-windows example.
2014-09-30 22:20:16 -07:00
Branimir Karadžić
61ed393f6c
DX11: Allow lost device for few frames.
2014-09-30 21:16:24 -07:00
Branimir Karadzic
9ba0956812
GLX: Added swap chain support.
2014-09-28 14:38:52 -07:00
Branimir Karadžić
80f2044a7c
Cleanup.
2014-09-28 11:03:47 -07:00
Branimir Karadžić
d705fbc9bd
Fixed RenderDoc crash when IntelGPA is present.
2014-09-27 20:40:47 -07:00
Branimir Karadžić
d35c14164b
Updated README.
2014-09-27 14:15:56 -07:00
Branimir Karadžić
58b37542c8
Removed *Mask API.
2014-09-27 12:07:40 -07:00
Branimir Karadžić
c659e70bdc
Uncomment RenderDoc dlclose. Fixed in RenderDoc nightly 9/26/14.
2014-09-26 20:31:54 -07:00
Branimir Karadžić
4657f97c6f
DX11: Integrated RenderDoc capture.
2014-09-25 22:41:53 -07:00
Branimir Karadžić
7362288131
Added EGL swap chain.
2014-09-24 19:22:15 -07:00
Branimir Karadžić
f4c7f69ed7
Added swap chain caps.
2014-09-23 20:35:39 -07:00
bkaradzic
357c2bfce1
Disabled dxerr, causes issues when building without DXSDK.
2014-09-23 07:46:39 -07:00
Branimir Karadžić
3d3a725812
DX9: Fixed swap chain depth creation.
2014-09-22 23:00:42 -07:00
Branimir Karadžić
de3d152b9c
Added multiple windows example.
2014-09-22 19:34:10 -07:00
miodragm
11b229c235
Enable DX11 for Win7 as well
2014-09-19 18:20:12 +02:00
Branimir Karadžić
e1d98eb465
Reverting to __uuidof...
2014-09-19 00:07:45 -07:00
Branimir Karadžić
f000f259d7
Fixed missing uuid.
2014-09-18 23:58:20 -07:00
Branimir Karadžić
338bbcb559
Cleanup.
2014-09-18 20:28:41 -07:00
m.milanovic@levi9.com
3e572a9616
Fixed DirectX 11 render compile errors
2014-09-18 15:33:09 +02:00
Branimir Karadžić
8f09044ea4
Fixed 64-bit warning.
2014-09-16 20:51:55 -07:00
Branimir Karadžić
c193bd0b62
Updated C99 header.
2014-09-14 11:31:23 -07:00
Branimir Karadžić
506efdc072
GLES2: Added EXT_draw_buffers support.
2014-09-12 00:02:12 -07:00
Branimir Karadžić
eec4ae9847
Fixing paths.
2014-09-10 21:48:08 -07:00
Branimir Karadžić
db954c9031
Fixed GCC warning.
2014-09-07 23:21:17 -07:00
bkaradzic
ba1c5353e6
Fixed iOS build.
2014-09-07 17:52:02 -07:00
bkaradzic
96e07d3929
Fixed OSX build.
2014-09-07 17:46:52 -07:00
Branimir Karadžić
2c03cf4927
Added multiple windows support.
2014-09-07 17:17:38 -07:00
bkaradzic
529b9274a5
Cleanup.
2014-09-03 00:29:54 -07:00
Branimir Karadžić
d3af45bd56
Cleanup.
2014-09-01 13:22:34 -07:00
Branimir Karadžić
6b00f65849
Increased number of MRT to 8.
2014-09-01 11:24:51 -07:00
Branimir Karadžić
3318053355
Fixed issue #145 .
2014-08-28 21:02:55 -07:00
bkaradzic
07f5cd2b70
Merge branch 'master' of github.com:bkaradzic/bgfx
2014-08-27 20:11:33 -07:00
bkaradzic
81c4b7d2ae
Fixed VS2012 warning when DXSDK and WindowsSDK are included.
2014-08-27 20:11:23 -07:00
Branimir Karadžić
4fb802e405
Added R11G11B10F format.
2014-08-26 20:56:53 -07:00
Branimir Karadžić
3b73fb2063
Cleanup.
2014-08-25 20:50:36 -07:00
Branimir Karadžić
af8bc1fac0
RPI: Init EGL via dispmanx.
2014-08-24 20:39:35 -07:00
Branimir Karadžić
140e990ab4
Added RaspberryPi platform.
2014-08-24 17:41:41 -07:00
bkaradzic
222fcbe75a
Cleanup.
2014-08-23 14:13:23 -07:00
Branimir Karadzic
a59593b1d2
Fixed missing define.
2014-08-23 14:01:52 -07:00
Branimir Karadžić
612eb2f7ed
Fixed uniform leak at shutdown.
2014-08-23 10:37:34 -07:00
bkaradzic
d138e01e72
Fixed undefined define.
2014-08-22 11:06:05 -07:00
Branimir Karadžić
2dcfe10acf
Fixed undefined defines errors.
2014-08-21 22:05:02 -07:00
Branimir Karadžić
17b2559e35
Cleanup.
2014-08-21 21:02:41 -07:00
Branimir Karadžić
b209308fbc
Cleanup.
2014-08-20 20:11:50 -07:00
Matthew Endsley
dc9e29601d
Resolve active render target in D3D9 before switch
...
On D3D9 platforms that work on active render target instead of
a specified surface, the resovle of the previous RT must happen
before the new RT becomes active.
2014-08-20 15:55:32 -07:00
Branimir Karadžić
b5627dc1b5
Made VertexDecl not appear as POD type to compiler.
2014-08-19 20:23:46 -07:00
Branimir Karadžić
66890595b9
Added serialization for vertex decl attribute enums. Binary format changes. Rebuilt all meshes and shaders.
2014-08-17 17:20:15 -07:00
Branimir Karadžić
3295126799
Updated texture container texture format support.
2014-08-12 21:47:01 -07:00
Branimir Karadžić
e42d878fe8
Fixed Issue #128 caused by read from unaligned memory (undefined behavior? when running asmjs).
2014-08-07 20:31:35 -07:00
Branimir Karadžić
659feeec61
Fixed NaCl debug build.
2014-08-06 22:16:17 -07:00
Branimir Karadžić
8c55c8f8a9
FreeBSD ifdefs.
2014-08-06 21:53:32 -07:00
Branimir Karadžić
c16f7a0f1f
Manually integrated some FreeBSD changes from @lye #132 pull request.
2014-08-06 21:18:41 -07:00
Branimir Karadžić
d525e96dd9
Manually integrated some FreeBSD changes from @lye #132 pull request.
2014-08-06 21:17:14 -07:00
Branimir Karadžić
5ddec2b790
DX11: Added static linking with D3D libs for WinRT.
2014-08-04 22:01:20 -07:00
Branimir Karadžić
be4729940c
Added BC6H and BC7 compressed formats.
2014-08-01 19:24:42 -07:00
bkaradzic
f6e740dee3
Updated README.
2014-07-30 22:44:26 -07:00
Branimir Karadžić
1c04b822bd
Cleanup.
2014-07-30 20:37:54 -07:00
Branimir Karadžić
f580110d7f
Cleanup.
2014-07-30 20:34:26 -07:00
Branimir Karadžić
1d0a9841d7
Added intel fragment shader ordering.
2014-07-29 21:29:38 -07:00
Branimir Karadžić
a8abead615
Fixed issue#123
2014-07-29 19:26:08 -07:00
Branimir Karadžić
e782f2f873
Fixed preprocessor bug that trucnates macro arguments to first character when concatenating them.
2014-07-28 20:15:01 -07:00
Branimir Karadžić
6c8eeec36e
Added caps info for all texture formats.
2014-07-27 20:44:02 -07:00
Branimir Karadžić
ac49c6f129
Added RG8 texture format.
2014-07-25 23:16:11 -07:00
Branimir Karadžić
c2c1f42ecc
Cleanup.
2014-07-24 23:31:52 -07:00
Branimir Karadžić
532fdf2198
GLES3.1: Fixed getting compute shader active uniform information.
2014-07-24 21:30:57 -07:00
Branimir Karadžić
ade8f49b6d
Added 32-bit texture formats.
2014-07-21 21:13:16 -07:00
Branimir Karadžić
62b620a1a0
Initial compute support.
2014-07-20 20:27:13 -07:00
Branimir Karadžić
2db00e3351
DX9: Fixed texture lod.
2014-07-12 16:41:51 -07:00
Branimir Karadžić
0ebb4923fc
Added interpolator qualifier support.
2014-06-25 18:43:26 -07:00
Branimir Karadžić
c7a257c27d
Fixed issue#106.
2014-06-24 20:29:43 -07:00
Branimir Karadžić
99b2441378
Added check to prevent multiple calls to bgfx init.
2014-06-22 21:37:38 -07:00
Branimir Karadžić
32ed7f5bf6
GL: Fixed MSAA + stencil.
2014-06-22 18:57:37 -07:00
Branimir Karadžić
1f7152cfc5
Cleanup.
2014-06-22 18:51:14 -07:00
Branimir Karadžić
2e38f2f483
Cleanup.
2014-06-14 18:11:54 -07:00
Branimir Karadžić
0728b91bfa
Workaround C4127 MSVC level 4 warning.
2014-06-08 20:57:39 -07:00
Branimir Karadžić
0f330a7a08
Added bgfx platform C99 header.
2014-06-05 22:49:51 -07:00
Branimir Karadžić
82216b2176
Fixed mip calculation.
2014-06-05 21:07:08 -07:00
Branimir Karadžić
4b5159394c
Added shared library support.
2014-06-01 15:26:43 -07:00
Branimir Karadžić
b176ad42c1
Fixed type.
2014-06-01 13:26:57 -07:00
Branimir Karadžić
97090e826c
Updated C99 header.
2014-06-01 13:25:31 -07:00
Branimir Karadžić
60b3ba03ea
Added interfaces to C99 header.
2014-05-31 10:33:37 -07:00
Branimir Karadžić
1c917de7f9
Added C99 compatible header.
2014-05-31 00:18:45 -07:00
Branimir Karadžić
dba5f9ee7f
Switched logic to prefer DX11 renderer on Win8.
2014-05-27 20:28:27 -07:00
Branimir Karadžić
4f908ee911
Updated 07-callback example.
2014-05-27 20:05:13 -07:00
Branimir Karadžić
20838ea4f2
Cleanup.
2014-05-26 14:34:58 -07:00
Branimir Karadžić
b0d204c344
Added ability to choose renderer backend in runtime.
2014-05-26 14:09:26 -07:00
Dario Manesku
c0ac10ad42
Fixing a small typo bug.
2014-05-24 20:16:40 +01:00
Branimir Karadžić
8cede52d91
Added 21-deferred example.
2014-05-21 20:33:12 -07:00
Branimir Karadžić
1d82b0c07b
Cleanup.
2014-05-19 22:08:35 -07:00
bkaradzic
b685a02947
Fixed compile error.
2014-05-11 12:48:11 -07:00
Branimir Karadžić
bba2ef8031
Added predefined uniforms for inverted view/proj/viewproj matrices.
...
shaderc: Added raw shader support.
shaderc: Fixed uniform types.
2014-05-10 20:51:54 -07:00
Branimir Karadžić
6dc6dd6148
Simplified allocator interface.
2014-05-01 10:15:41 -07:00
Branimir Karadžić
d479af651c
Cleanup.
2014-04-29 19:52:10 -07:00
Branimir Karadžić
7bc62b1d07
Added tristrip support.
2014-04-26 23:48:41 -07:00
Branimir Karadžić
285bd321f9
Cleanup.
2014-04-25 19:36:42 -07:00
Dmitry Ivanov
f793c2f087
more pvr formats
2014-04-26 00:21:55 +02:00
bkaradzic
a9b07870d5
Avoid creating MRT shaders when GL doesn't support MRT.
2014-04-19 18:16:26 -07:00
Branimir Karadžić
dbbaa6ec90
Added texture debug info.
2014-04-19 15:02:43 -07:00
Branimir Karadžić
c8442ebb40
Cleanup.
2014-04-16 22:24:31 -07:00
Branimir Karadžić
e39d280a31
Fixed 10-font example.
2014-04-16 22:11:14 -07:00
Branimir Karadžić
903b186110
Cleanup.
2014-04-15 22:59:40 -07:00
Branimir Karadžić
bc36c29f2a
Added ability to retrieve uniforms used by shader.
2014-04-15 19:10:56 -07:00
Branimir Karadžić
428f63eacb
Cleanup.
2014-04-13 11:43:34 -07:00
Branimir Karadžić
f1a1212efc
Fixed texture formats for iOS.
2014-04-12 21:25:38 -07:00
Branimir Karadžić
78475a30e6
Added ability to set start vertex when setting vertex buffer.
2014-04-10 22:09:17 -07:00
bkaradzic
4955630ab0
Removed texture format check from Emscripten build (causes JS to stop responding).
2014-04-10 20:18:16 -07:00
Branimir Karadžić
aadd9bd1c1
Fixed NaCl crash.
2014-04-10 19:21:10 -07:00
Branimir Karadžić
ea34b9476c
Fixed GL texture sampler state. Issue#85
2014-04-09 21:23:27 -07:00
Branimir Karadžić
efc6516a00
Fixed compiler warning.
2014-04-07 22:58:30 -07:00
Branimir Karadžić
80b7ad4d2f
GL: Added check for texture formats.
2014-04-06 21:31:28 -07:00
Branimir Karadžić
b4ed970363
Merge.
2014-04-06 21:30:32 -07:00
Attilaz
9092266533
iOS: added stencil buffer to context fbo. ( fixed stencil example )
...
Depth/stencil in this fbo ( and other contexts ) should depend on some user settable flag ( flag from bgfx::reset ?)
2014-04-06 14:58:21 +02:00
Attilaz
601df52fae
APPLE_texture_format_BGRA8888 support fix, tested on Apple iPad mini 2.
2014-04-06 14:58:21 +02:00
Branimir Karadžić
5e382dc481
GL: Messing with compressed texture formats.
2014-04-02 22:06:18 -07:00
bkaradzic
ccf024dbbd
GL: Check for extension and compressed texture format enumeration.
2014-04-02 20:52:15 -07:00
Branimir Karadžić
6e4ad864a9
Cleanup.
2014-04-01 22:58:03 -07:00
Branimir Karadžić
e907edd1eb
GLES3 fixed gl_FragData patching.
2014-04-01 22:31:02 -07:00
Branimir Karadžić
c49656c473
Fixed GLES3 shader patching.
2014-03-31 23:17:05 -07:00
Branimir Karadžić
b4dc2d4ea1
Fixed samplers and depth format.
2014-03-31 22:41:56 -07:00
Branimir Karadžić
51d948bd15
Cleanup.
2014-03-31 20:37:04 -07:00
Branimir Karadžić
d436875344
Cleanup.
2014-03-31 20:08:32 -07:00
Branimir Karadžić
df7999c891
Merge pull request #81 from attilaz/master
...
fixed dst inside loop
2014-03-31 14:19:04 -07:00
attilaz
ec0f407469
fixed dst inside loop
...
This fixes examples 08,10 and 11 on iOS.
2014-03-31 23:01:46 +02:00
bkaradzic
e79a85bd2e
Fixed iOS build.
2014-03-30 21:54:53 -07:00
bkaradzic
eb07a24124
Fixed shader patching.
2014-03-30 13:19:33 -07:00
Branimir Karadžić
47a965bf51
Cleanup.
2014-03-30 10:22:18 -07:00
Branimir Karadžić
85c5172a29
Changed GLES macro to use version number.
2014-03-29 23:12:15 -07:00
bkaradzic
32ca63bd93
Cleanup.
2014-03-29 19:58:24 -07:00
Branimir Karadžić
f436f79c10
Simplified API, removed difference between vertex and fragment shaders.
2014-03-29 19:42:57 -07:00
Branimir Karadžić
2701350b7f
GLES3 fixes.
2014-03-29 17:22:24 -07:00
Branimir Karadžić
6afa55381a
Updated glsl-optimizer.
2014-03-29 16:26:01 -07:00
bkaradzic
4410e0de4d
Fixed debug marker extension check.
2014-03-29 14:32:47 -07:00
Branimir Karadžić
2f3c37d850
Cleanup.
2014-03-27 22:36:53 -07:00
Branimir Karadžić
4cabbe37d6
Fixed draw buffers.
2014-03-27 21:35:14 -07:00
Branimir Karadžić
dfdd644fdb
Fixed compile error.
2014-03-27 09:55:39 -07:00
Branimir Karadžić
b42819a87a
Added GL_CHECK_I macro to ignore GL errors.
2014-03-27 09:19:44 -07:00
bkaradzic
eecbf19c57
Ignore blend independent when not supported.
2014-03-26 23:37:01 -07:00
Branimir Karadžić
a3df7a3ac6
Added blend independent caps debug info.
2014-03-26 22:39:40 -07:00
Branimir Karadžić
d3753d69bf
Added support for blend separate and blend MRT independent.
2014-03-25 23:07:51 -07:00
Branimir Karadžić
03dc9225ed
Enabled GL extensions for asm.js.
2014-03-18 22:50:24 -07:00
bkaradzic
329be757a9
OSX: Added NSOpenGLCPSwapInterval control.
2014-03-17 19:14:20 -07:00
Branimir Karadžić
9e441a546f
Removed workaround from old Emscripten SDK.
2014-03-16 22:36:53 -07:00
bkaradzic
dfa6229237
Fixed attribs and uniforms with WebGL/asmjs.
2014-03-16 18:16:08 -07:00
Branimir Karadžić
81a3e23841
Adding webgl extensions.
2014-03-16 17:43:51 -07:00
bkaradzic
fa9b650b37
Added entry for asmjs.
2014-03-16 16:49:59 -07:00
Branimir Karadžić
c633838822
Fixed compile error.
2014-03-15 10:40:10 -07:00
Branimir Karadžić
e24c3f42b3
Cleanup.
2014-03-12 22:32:27 -07:00
Branimir Karadžić
cec1b79390
Removed unused variable.
2014-03-10 20:12:39 -07:00
Branimir Karadžić
22bbd166d7
Cleanup.
2014-03-09 21:21:53 -07:00
bkaradzic
ed4496282b
Cleanup.
2014-03-05 20:51:44 -08:00
Branimir Karadžić
08ec0f3f96
Cleanup.
2014-03-04 22:23:58 -08:00
Branimir Karadžić
dea6567b5b
Cleanup.
2014-03-04 22:20:37 -08:00
Branimir Karadžić
c7ad5a0095
Use block info for minimum texture block size.
2014-03-01 20:08:50 -08:00
Branimir Karadžić
490e31de52
Merge branch 'master' of github.com:bkaradzic/bgfx
2014-03-01 19:30:55 -08:00
Branimir Karadžić
f04798d3e0
Fixed compressed image block size.
2014-03-01 19:27:34 -08:00
bkaradzic
c01354ecd2
Fixed glimports.
2014-02-27 20:12:17 -08:00
Branimir Karadžić
739b7646d7
Spit out translated shader in debug build when using ANGLE.
2014-02-26 20:24:35 -08:00
Branimir Karadžić
673a80363c
Fixed MSAA resolve.
2014-02-25 22:20:09 -08:00
Branimir Karadžić
9852b6977c
Added missing gl stubs.
2014-02-25 21:33:16 -08:00
bkaradzic
d7c4adb369
Added missing caps to debug info.
2014-02-24 22:31:04 -08:00
bkaradzic
cf940331d6
Fixed framebuffer size.
2014-02-24 22:10:19 -08:00
bkaradzic
7ad942b14b
Fixed bad logic.
2014-02-24 22:02:43 -08:00
Branimir Karadžić
0fe44d7829
Fixed incomplete framebuffer.
2014-02-24 22:00:26 -08:00
Branimir Karadžić
6eee3cca63
Added shadow samplers and updated example 15-shadowmaps-simple to use them.
2014-02-24 21:44:12 -08:00
Branimir Karadžić
a68ffbf4a0
WIP: Adding texture compare modes and shadow samplers support.
2014-02-23 11:21:23 -08:00
Branimir Karadžić
b09018df86
DX9: Create D3DFMT_NULL render target when only depth is attached to framebuffer.
2014-02-22 08:48:30 -08:00
Branimir Karadžić
ceffc24f17
Cleanup.
2014-02-20 23:03:31 -08:00
Branimir Karadžić
3bc15318fd
Cleanup.
2014-02-20 22:05:50 -08:00
Branimir Karadžić
95ff8b3f07
Added ANGLE extensions.
2014-02-19 23:49:28 -08:00
Branimir Karadžić
03632e48f6
Fixed createTexture default argument error.
2014-02-19 23:04:19 -08:00
Branimir Karadžić
753b9fdd15
Added ability to skip top level mips when parsing texture format.
2014-02-19 22:34:53 -08:00
Branimir Karadžić
3ca0d8312a
Fixed GLES3 build.
2014-02-19 21:22:22 -08:00
bkaradzic
f554176645
GL import fixes for Linux.
2014-02-19 20:53:06 -08:00
bkaradzic
0829795663
GL import fixed for OSX and iOS.
2014-02-19 20:08:22 -08:00
Branimir Karadžić
db735f5ff6
GL import code cleanup. Added ability to load GLES library dynamically.
2014-02-18 23:36:13 -08:00
Branimir Karadžić
c6f5fa3b25
Updated log message with renderer name.
2014-02-16 18:43:46 -08:00
Branimir Karadžić
91043b0195
Added dynamic loading of EGL library on Windows.
2014-02-16 16:40:08 -08:00
Branimir Karadžić
101a2162ff
Added EXT_shader_texture_lod support.
2014-02-16 16:08:44 -08:00
Branimir Karadžić
e2532b37ff
Fixed: Swizzle works only for BGRA8.
2014-02-16 10:50:58 -08:00
bkaradzic
cfdb38c590
Fixed EXT_bgra handling.
2014-02-14 20:43:00 -08:00
bkaradzic
ba7de4bcae
Added precision specifier defines for embedded shaders.
2014-02-14 09:18:49 -08:00
bkaradzic
7c7f406c9e
Fixed issue #74 (cont).
2014-02-13 22:50:52 -08:00
Branimir Karadžić
771909c988
Fixed issue #74 .
2014-02-13 22:13:19 -08:00
Branimir Karadžić
9ff1d0c513
Updated copyright year.
2014-02-10 22:07:04 -08:00
Branimir Karadžić
c89004fdeb
Cleanup.
2014-02-10 21:06:46 -08:00
Branimir Karadžić
ad335be715
shaderc: Added ARB_shader_texture_lod extension.
2014-02-09 16:46:50 -08:00
bkaradzic
7884a72df2
Added destroy shaders option when creating program.
2014-02-06 20:03:26 -08:00
bkaradzic
877621105d
Added MRT support.
2014-02-05 23:07:11 -08:00
bkaradzic
3273b04f6f
Use aligned allocator for context.
2014-01-31 22:08:31 -08:00
bkaradzic
b0957f34fe
Enable screen shot save when CRT file is present.
2014-01-21 20:53:43 -08:00
bkaradzic
b25a7cc9ff
Fixed C4244 warnings.
2014-01-20 22:07:08 -08:00
bkaradzic
3e4ec1dc24
Added check for memory leak.
2014-01-20 21:49:36 -08:00
bkaradzic
2c05b90792
Embedded shaders and font into 17-drawstress.
2014-01-19 22:34:58 -08:00
bkaradzic
35f895adb3
Cleanup.
2014-01-19 16:03:09 -08:00
bkaradzic
e8075dc367
Using renderFrame to setup thread creation behavior.
2014-01-19 14:58:05 -08:00
bkaradzic
96d9d7437b
Swiched from FPU to SIMD math.
2014-01-18 23:33:00 -08:00
bkaradzic
a11fbaf520
GL: Disable scissor before FB blit.
2014-01-16 08:33:25 -08:00
bkaradzic
4061d19963
Updated screenshots.
2014-01-13 20:36:33 -08:00
bkaradzic
e50f0b11dc
Merge branch 'master' of github.com:bkaradzic/bgfx
2014-01-12 21:43:56 -08:00
bkaradzic
1f228a172b
Increased BGFX_CONFIG_MAX_DRAW_CALLS to 64K.
2014-01-12 21:43:47 -08:00
bkaradzic
fc01a51e0b
Merge.
2014-01-12 14:55:18 -08:00
bkaradzic
046449395b
Added depth stencil texture formats.
2014-01-12 13:51:26 -08:00
bkaradzic
12545b0a88
Merge branch 'master' of github.com:bkaradzic/bgfx
2014-01-11 16:51:21 -08:00
bkaradzic
da62c82d3f
Cleanup.
2014-01-08 22:08:37 -08:00
bkaradzic
d1117f34b5
Added support for different RT depth stencil formats.
2013-12-29 11:43:44 -08:00
bkaradzic
835131d69f
Quiet GCC 4.8.1.
2013-12-23 20:57:58 -08:00
bkaradzic
b31eaa1697
Merge branch 'master' of github.com:bkaradzic/bgfx
2013-12-20 21:44:02 -08:00
bkaradzic
2674b5db5c
Fixed Linux build with GL 3.1
2013-12-20 21:43:07 -08:00
bkaradzic
3903d3af85
GL: Updated extensions.
2013-12-20 21:42:24 -08:00
bkaradzic
7e656fa4ef
Added GL 3.1 core profile shader patching.
2013-12-20 19:51:17 -08:00
bkaradzic
f4260eb405
GL: Added num mips to sampler state cache hash value.
2013-12-16 21:34:33 -08:00
bkaradzic
2fdea069ac
Added fragment depth caps flag.
2013-12-15 12:30:23 -08:00
bkaradzic
ee8a277774
GLES2: Added GL_EXT_frag_depth support.
2013-12-13 23:06:28 -08:00
bkaradzic
96558381a4
Fixed init/detach shader order that causes crash on Tegra3.
2013-12-13 23:52:35 -08:00
bkaradzic
3cf263ec86
GLES2: Added support for 3D texture extension. Added shader patching to enable extensions.
2013-12-12 22:35:27 -08:00
bkaradzic
1a6300b6c4
Fixed issue#48. Passing bad MSAA value to glRenderbufferStorage.
2013-12-11 21:09:18 -08:00
bkaradzic
492e99e1c3
Android fixed RGBA16F texture format.
2013-12-10 22:18:00 -08:00
bkaradzic
6249e68467
Android default screen resolution.
2013-12-09 20:18:51 -08:00
bkaradzic
11722f17a1
Fixed GCC warning.
2013-12-07 10:26:17 -08:00
bkaradzic
dee588dfba
OSX/iOS: Updated to Xcode5.
2013-12-07 10:19:54 -08:00
bkaradzic
4970c175c7
Fixed debug info.
2013-12-08 00:00:30 -08:00
bkaradzic
d595f34c0a
Cleanup.
2013-12-07 22:01:55 -08:00
bkaradzic
5b4d4b37fa
Fixed GL imports.
2013-12-07 22:01:32 -08:00
bkaradzic
f5f138290e
Fixed MSVC warning.
2013-12-02 23:59:03 -08:00
bkaradzic
25002b301d
Added vertex attrib half caps.
2013-12-02 19:47:12 -08:00
bkaradzic
9487ab6b5f
Fixed GCC warnings.
2013-11-29 22:23:04 -08:00
Dario Manesku
fb780b2f25
Fixing bgfx::weldVertices().
2013-11-20 05:50:11 +01:00
bkaradzic
04f348c2ea
OSX: Moved NSOpenGLContext creation to the main thread that created NSWindow. Fixes occasional GL_INVALID_FRAME_BUFFER_OPERATION error on DrawElements.
2013-11-18 20:43:17 -08:00
bkaradzic
82194c57ee
Updated glext with latest from Khronos.
2013-11-17 14:24:10 -08:00
bkaradzic
304683d839
Fixed DX11.
2013-11-16 10:58:15 -08:00
bkaradzic
fce9692557
Using language compliant header guards.
2013-11-13 21:54:36 -08:00
bkaradzic
08ebd5523d
Updated 08-update example.
2013-11-08 22:10:31 -08:00
bkaradzic
d0005a5ff8
Cleanup.
2013-11-08 21:07:35 -08:00
bkaradzic
ec3f5d2369
Added workaround when unpack row length is not supported on GLES2.
2013-11-08 20:53:23 -08:00
bkaradzic
b584873b50
Added ability to specify arbitrary source pitch when uploading textures.
...
Added reference weldVertices implementation.
2013-11-07 23:00:53 -08:00
bkaradzic
35a39f6c00
Added vertex welding support.
2013-11-02 23:00:31 -07:00
bkaradzic
9ba51d6ff9
Cleanup.
2013-10-23 21:18:01 -07:00
bkaradzic
cbac476ee1
Removed 64K/indices dynamic index buffer limit.
2013-10-21 22:04:41 -07:00
bkaradzic
9646ecfc9c
Removed use of non-portable _WIN32_WINNT macro.
2013-10-21 20:56:23 -07:00
bkaradzic
ce8f1bbf4d
Added frame number as result for frame API call. Added number of draw calls as return value for submit and submitMask API calls.
2013-10-21 20:37:02 -07:00
bkaradzic
081939a306
DX9: Fixed mingw debug build.
2013-10-19 23:21:19 -07:00
bkaradzic
ea39b33e87
EGL: Added stencil config.
2013-10-19 22:17:52 -07:00
bkaradzic
a51fd54c23
Fixed permissions.
2013-10-19 15:36:26 -07:00
bkaradzic
dcd0452d82
DX11: Fixed refcount checks on release.
2013-10-18 22:34:23 -07:00
Dario Manesku
176fe0f993
Fixed StencilOp bug.
2013-10-15 05:39:18 +01:00
bkaradzic
6f3a18a805
Added delayed load for GLES dlls on Windows.
2013-10-10 22:57:42 -07:00
bkaradzic
f440f160f9
Exposed renderer capabilities.
2013-10-10 18:29:57 -07:00
bkaradzic
5f35341abf
Fixed alloc/free mismatch with tinystl::string.
2013-10-06 19:32:35 -07:00
bkaradzic
a863185e57
Added guard for memory tracking.
2013-10-06 11:09:55 -07:00
bkaradzic
46d6ff0b59
Cleanup.
2013-10-05 19:46:57 -07:00
bkaradzic
2639c5f61d
Added uniform reference counting. Reorg some header/source implementation.
2013-10-05 18:07:44 -07:00
bkaradzic
749410c6b2
Cleanup.
2013-10-04 23:45:05 -07:00
bkaradzic
e6eaea7591
Fixed GCC warning.
2013-10-03 21:43:36 -07:00
bkaradzic
25917d1cac
Fixed shader and program cleanup.
2013-10-03 20:39:55 -07:00
bkaradzic
557c175e61
Delay VertexDecl release until VertexBuffer is released.
2013-10-03 20:36:40 -07:00
bkaradzic
41d5bcfc1b
DX11: Fixed assert when running with GPA.
2013-10-02 21:43:09 -07:00
bkaradzic
5b415315dc
Cleanup.
2013-10-02 21:20:23 -07:00
bkaradzic
212937602a
DX9: fixed cubemap upload.
2013-10-02 21:18:33 -07:00
bkaradzic
2cf5c45224
Fixed NaCl initialization.
2013-09-30 20:09:09 -07:00
bkaradzic
df1dfdc872
Added isValid check function for handles.
2013-09-29 21:33:50 -07:00
bkaradzic
9f2faf8c06
Added predefined uniforms docs.
2013-09-29 10:42:41 -07:00
bkaradzic
d3005380d8
Cleanup.
2013-09-22 22:38:31 -07:00
bkaradzic
ab969f0a1a
Enable tinystl by default.
2013-09-22 21:40:17 -07:00
bkaradzic
7c81905ed2
GL: Unbind VAO before using clear quad.
2013-09-21 22:31:00 -07:00
bkaradzic
d1c55b1d09
Cleanup.
2013-09-20 23:19:21 -07:00
bkaradzic
45365db46a
Fixed GL memory leaks.
2013-09-20 23:07:14 -07:00
bkaradzic
a5948679ca
Removed context static inialization.
2013-09-20 22:13:58 -07:00
bkaradzic
083ada2fbd
Replaced custom allocator handling.
2013-09-16 21:40:30 -07:00
bkaradzic
d3dfd3cafe
Fixed ETC1 mod table.
2013-09-16 20:19:08 -07:00
bkaradzic
1c595a6820
Fixed bad offset for ETC2 planar mode decoding.
2013-09-15 20:44:10 -07:00
bkaradzic
f88da8bea4
GL: Fixed ETC1 format override logic.
2013-09-15 16:00:46 -07:00
bkaradzic
eefa378449
GL: Override ETC1 format settings when ETC2 is available.
2013-09-15 14:44:26 -07:00
bkaradzic
528a725387
Added ETC2 decoding.
2013-09-15 14:36:51 -07:00
bkaradzic
666b431b40
Fixed ETC1 block decoding.
2013-09-11 21:12:20 -07:00
bkaradzic
c8fce8d93f
DX9: Use D3DCREATE_FPU_PRESERVE as device behavior.
2013-09-09 22:03:36 -07:00
bkaradzic
8b9a98b05f
Added different colors for unsupported compressed image fallbacks.
2013-09-09 22:02:36 -07:00
bkaradzic
983f1e6f9a
GL: When using ARB_texture_swizzle don't swizzle image to BGRA8.
2013-09-08 23:03:14 -07:00
bkaradzic
084c8e8345
Fixed missing PVR3 formats. Fixed decompression checkerboard error color.
2013-09-08 22:16:15 -07:00
bkaradzic
488483a945
Fixed texture update when requested texture format doesn't match internal texture format, and simplified texture creation.
2013-09-08 21:03:03 -07:00
bkaradzic
82256fc34d
Merge branch 'master' of github.com:bkaradzic/bgfx
2013-09-05 21:41:52 -07:00
bkaradzic
1aced4d4ec
Cleanup.
2013-09-05 21:41:42 -07:00
bkaradzic
2250a21f85
Added clang analyzer annotation.
2013-09-05 20:23:35 -07:00
bkaradzic
8cdc2a1d15
Added ETC2 and PVRTC2.
2013-09-04 21:42:31 -07:00
bkaradzic
19ce130464
Added PVRTC1 support.
2013-09-03 20:13:07 -07:00
bkaradzic
f540cd827b
GLES: Fixed glReadPixels format. Added IMG_shader_binary support.
2013-09-02 19:50:18 -07:00
bkaradzic
1471a37366
Added other supported formats to KTX parser.
2013-09-02 19:02:26 -07:00
bkaradzic
726a5feea1
Cleanup.
2013-09-02 18:50:04 -07:00
bkaradzic
19dd4020f4
Added ETC1 texture support. Added KTX file format support.
2013-09-02 16:22:53 -07:00
bkaradzic
9537208d2f
Removed use of bx::CrtFileWriter inside bgfx.
2013-09-01 14:23:05 -07:00
bkaradzic
2d1725ca96
Check semaphore result after wait.
2013-09-01 14:02:12 -07:00
bkaradzic
1da64571d9
Fixed MinGW build.
2013-08-30 22:31:40 -07:00
bkaradzic
a68969875e
Added alignment warning for imageSwizzleBgra8.
2013-08-28 22:55:12 -07:00
bkaradzic
08c38f5101
Added debug check when passing uninitialized vertex decl.
2013-08-27 22:02:43 -07:00
bkaradzic
6c4faed7d5
Cleanup.
2013-08-22 19:58:08 -07:00
bkaradzic
20f24bbe2b
Fixed Linux build.
2013-08-22 09:56:41 -07:00
bkaradzic
333ff8500d
Added imageRgba8Downsample2x2 utility function and updated 07-callback to demonstrate how to use it to generate mip maps.
2013-08-21 22:51:50 -07:00
bkaradzic
fe92ee4b9a
Updated docs.
2013-08-18 00:00:14 -07:00
bkaradzic
6f7c04a43c
Removed fatal error on SetPixelFormat to prevent failure when window is created with SDL and SDL_WINDOW_OPENGL flag.
2013-08-16 22:32:03 -07:00
bkaradzic
c8ac5690ba
Cleanup.
2013-08-16 22:29:55 -07:00
bkaradzic
752fa73cec
Fixed bad logic for ref/simd path.
2013-08-15 20:14:27 -07:00
bkaradzic
7bdae66027
GL: Fixed memory corruption.
2013-08-15 00:06:10 -07:00
bkaradzic
6d0ebf3103
Cleanup.
2013-08-14 23:26:24 -07:00
bkaradzic
691c6c7f67
Added utility function imageSwizzleBGRA8 to convert RGBA8 image to BGRA8.
2013-08-14 23:19:12 -07:00
bkaradzic
e047232292
WGL: Skip context initialization when window is not set.
2013-08-10 21:26:56 -07:00
bkaradzic
f7fe163f2b
Cleanup.
2013-08-06 21:04:28 -07:00
bkaradzic
3aea7306c6
Fixed compiler errors.
2013-08-04 16:56:07 -07:00
bkaradzic
e9504c9a26
Removed using namespace bx.
2013-08-03 22:15:13 -07:00
bkaradzic
44231e9c7f
Fixed rect intersect when there is no interesction.
2013-08-01 23:17:27 -07:00
bkaradzic
fe0bbeb0e6
If both view and primitive scissors are set set their intersection as scissor region.
2013-08-01 22:55:26 -07:00
bkaradzic
a09f804ac3
Fixed discard primitive logic.
2013-07-29 19:01:29 -07:00
bkaradzic
c5025b769e
GL: Added support for ARB_depth_clamp.
2013-07-28 19:16:35 -07:00
bkaradzic
2d3a408cfb
GL: Disable scissor when rendering debug text.
2013-07-27 22:31:53 -07:00
bkaradzic
27c476924e
GL: Disabled scissor test when using clear quad.
2013-07-27 21:07:23 -07:00
bkaradzic
bac2073b76
Added support for per primitive scissor.
2013-07-27 15:27:54 -07:00
bkaradzic
a1e226cb5b
Cleanup.
2013-07-26 22:55:13 -07:00
bkaradzic
2772c5d209
Merge branch 'master' of github.com:bkaradzic/bgfx
2013-07-25 23:14:09 -07:00
bkaradzic
b1901ae776
Fixed instancing.
2013-07-25 23:13:48 -07:00
Branimir Karadzic
91b14c7bfd
GLX: Removed redundant glXMakeCurrent from swap.
2013-07-24 22:28:16 -07:00
Branimir Karadzic
df3c562d47
Linux: Fixed context/init code for Mesa/i915.
2013-07-24 22:22:38 -07:00
bkaradzic
a1dfd1ab0d
Added ability to change sampler filter when setting texture. GL/GLES3: Added support for GL_ARB_sampler_objects.
2013-07-24 21:59:59 -07:00
bkaradzic
84eec31043
Enable multithreading on Linux by default.
2013-07-24 20:18:04 -07:00
bkaradzic
2e086e32b3
iOS: Msaa and default back buffer are the same.
2013-07-22 21:35:22 -07:00
bkaradzic
5707309e6f
GL: Added default back buffer FBO.
2013-07-22 21:20:43 -07:00
bkaradzic
d927f59bd8
Cleanup.
2013-07-21 21:53:20 -07:00
bkaradzic
a17be960c6
Cleanup.
2013-07-21 20:56:12 -07:00
bkaradzic
ab3fc19230
GL: Added support for ARB_seamless_cube_map.
2013-07-21 19:59:42 -07:00
bkaradzic
b6da99b102
GL: Sorted extensions by name.
2013-07-21 19:27:47 -07:00
bkaradzic
41dfddf424
Cleanup.
2013-07-21 15:38:44 -07:00
bkaradzic
9852949a38
Merge branch 'master' of github.com:bkaradzic/bgfx
2013-07-21 14:46:23 -07:00
bkaradzic
bf22ffaae1
iOS stuff.
2013-07-21 14:44:53 -07:00
bkaradzic
376bdf1b74
GL: Detach shaders after linking program.
2013-07-18 00:41:27 -07:00
bkaradzic
ba1bd59488
Merge branch 'master' of github.com:bkaradzic/bgfx
2013-07-15 21:49:27 -07:00
bkaradzic
d95e120430
Fixed warning: comparison is always true due to limited range of data type.
2013-07-15 21:48:55 -07:00
bkaradzic
5c58067213
Cleanup.
2013-07-14 14:41:15 -07:00
bkaradzic
f5edb6cdf4
Added view scissor support.
2013-07-14 14:32:09 -07:00
bkaradzic
59d6f3d8ee
iOS WIP.
2013-07-14 13:14:48 -07:00
bkaradzic
fcf71d35f3
Fixed shutdown on OSX.
2013-07-14 10:13:10 -07:00
bkaradzic
d30a5240d7
Fixed crash when decompressing DDS texture.
2013-07-13 23:11:02 -07:00
bkaradzic
1e458f4332
Cleanup.
2013-07-13 16:52:28 -07:00
bkaradzic
43a34ac38f
Fixed uninitialized member variables.
2013-07-12 23:28:25 -07:00
bkaradzic
f59ba947cb
iOS WIP.
2013-07-12 22:27:46 -07:00
bkaradzic
851ab7fde5
Fixed OSX build.
2013-07-10 23:18:16 -07:00
bkaradzic
da5d390262
Fixed buffer overrun.
2013-06-25 21:09:20 -07:00
bkaradzic
87dfe979a5
Added blend equation support.
2013-06-17 22:11:45 -07:00
bkaradzic
1f4539ec7c
Added ability to set marker for profiling events.
2013-06-10 22:41:03 -07:00
bkaradzic
a5c6c0bf5b
Added ability to set view name for profiling events.
2013-06-09 15:28:25 -07:00
bkaradzic
493766caa6
Added vsync info to debug display.
2013-06-08 08:25:03 -07:00
bkaradzic
e79102bf0e
Added check available memory for instance buffer.
2013-06-03 20:51:06 -07:00
bkaradzic
84a3abd542
Updated README.
2013-05-17 20:03:45 -07:00
bkaradzic
6890764dc1
Fixed Issue #33 .
2013-05-16 21:31:59 -07:00
Garett Bass
7e128dfae7
Build fix for OSX gmake. Outstanding issues: gmake binaries fail for unknown reason, XCode projects not picking up bx/include/compat/osx for unknown reason.
2013-05-05 23:10:01 -07:00
bkaradzic
ba6aacace3
Changed API to allow larger alloc checks, and to avoid integer truncation.
2013-05-02 22:16:33 -07:00
bkaradzic
b7c4630ee3
Added function to check both vertex and index transient buffers.
2013-05-01 20:35:43 -07:00
bkaradzic
468b48b017
Removed bad check for clear flags.
2013-04-30 23:10:29 -07:00
bkaradzic
0e0fcd22de
Removed use of external debug functions.
2013-04-28 12:27:35 -07:00
bkaradzic
bb8531d9a2
GLX: Added glXSwapIntervalMESA.
2013-04-27 22:39:15 -07:00
bkaradzic
757bf93b78
DX11: Added device info to debug display.
2013-04-27 18:03:40 -07:00
bkaradzic
80282277a9
DX9: Added device info to debug display.
2013-04-27 16:55:34 -07:00
bkaradzic
a33175cf6a
GLX: Fixed vsync.
2013-04-27 15:26:23 -07:00
bkaradzic
2ef508139f
GL/GLES: vsync.
2013-04-27 15:16:05 -07:00
bkaradzic
3ed331220f
Cleanup.
2013-04-27 13:30:35 -07:00
bkaradzic
8711d3d3a3
GLX: added swap interval.
2013-04-26 23:43:31 -07:00
bkaradzic
6932b256a8
Merge branch 'master' of github.com:bkaradzic/bgfx
2013-04-24 19:15:45 -07:00
bkaradzic
10236da0f4
Fixed warnings.
2013-04-24 19:15:29 -07:00
bkaradzic
e25e93a7e7
Fixed GCC warnings.
2013-04-24 08:44:55 -07:00
bkaradzic
1a0e1699d9
Fixed bug when passing identity to view transform.
2013-04-23 22:40:50 -07:00
bkaradzic
616177ea5f
Fixing unused macro.
2013-04-23 19:29:46 -07:00
bkaradzic
0434ccfc10
Added makefile for embedded shaders.
2013-04-22 23:33:32 -07:00
bkaradzic
d8bd7419f9
Added sanity check for transient buffers.
2013-04-21 23:16:34 -07:00
bkaradzic
aa814e9994
Cleanup.
2013-04-21 11:50:45 -07:00
bkaradzic
b94c328604
Fixed bad logic.
2013-04-21 00:43:00 -07:00
bkaradzic
dae6768c43
Fixed detection of instanced_array extension.
2013-04-20 23:13:44 -07:00
bkaradzic
ba55084ad8
Android wip.
2013-04-18 23:32:12 -07:00
bkaradzic
767df6c5e6
Android plumbing.
2013-04-18 21:16:09 -07:00
bkaradzic
247a3004ef
GLES2: #ifdef use of GL_TEXTURE_MAX_LEVEL.
2013-04-17 20:46:25 -07:00
bkaradzic
c8c7139fc1
GL: Set max mip level to save memory.
2013-04-17 20:33:44 -07:00
bkaradzic
775ae7f61b
GL: fixed GL_DEBUG_* define name.
2013-04-16 09:24:43 -07:00
bkaradzic
d3a526a92b
Android build fixes wip.
2013-04-15 23:10:32 -07:00
bkaradzic
6ed7b6fe14
GL: Cleanup.
2013-04-15 21:17:30 -07:00
bkaradzic
7580bbb25e
GL: fixed texture filter. Updated debug messages.
2013-04-15 20:59:01 -07:00
bkaradzic
3ed3938fda
Cleanup.
2013-04-14 18:20:30 -07:00
bkaradzic
8a6b6133ec
Fixed stencil clear when using clear quad.
2013-04-14 18:18:11 -07:00