Commit graph

360 commits

Author SHA1 Message Date
Branimir Karadžić
b4dc2d4ea1 Fixed samplers and depth format. 2014-03-31 22:41:56 -07: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ć
85c5172a29 Changed GLES macro to use version number. 2014-03-29 23:12:15 -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ć
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ć
d3753d69bf Added support for blend separate and blend MRT independent. 2014-03-25 23:07:51 -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
Branimir Karadžić
e24c3f42b3 Cleanup. 2014-03-12 22:32:27 -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ć
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
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
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ć
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ć
753b9fdd15 Added ability to skip top level mips when parsing texture format. 2014-02-19 22:34:53 -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ć
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
877621105d Added MRT support. 2014-02-05 23:07:11 -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
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
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
4970c175c7 Fixed debug info. 2013-12-08 00:00:30 -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
82194c57ee Updated glext with latest from Khronos. 2013-11-17 14:24:10 -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
9ba51d6ff9 Cleanup. 2013-10-23 21:18:01 -07:00
bkaradzic
f440f160f9 Exposed renderer capabilities. 2013-10-10 18:29:57 -07:00
bkaradzic
2639c5f61d Added uniform reference counting. Reorg some header/source implementation. 2013-10-05 18:07:44 -07:00
bkaradzic
25917d1cac Fixed shader and program cleanup. 2013-10-03 20:39:55 -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
7c81905ed2 GL: Unbind VAO before using clear quad. 2013-09-21 22:31:00 -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
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
983f1e6f9a GL: When using ARB_texture_swizzle don't swizzle image to BGRA8. 2013-09-08 23:03:14 -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
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
19dd4020f4 Added ETC1 texture support. Added KTX file format support. 2013-09-02 16:22:53 -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
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
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
fe0bbeb0e6 If both view and primitive scissors are set set their intersection as scissor region. 2013-08-01 22:55:26 -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
b1901ae776 Fixed instancing. 2013-07-25 23:13:48 -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
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
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
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
f5edb6cdf4 Added view scissor support. 2013-07-14 14:32:09 -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
f59ba947cb iOS WIP. 2013-07-12 22:27:46 -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
2ef508139f GL/GLES: vsync. 2013-04-27 15:16:05 -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
616177ea5f Fixing unused macro. 2013-04-23 19:29:46 -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
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
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
bkaradzic
ab05bc6974 Added BX_PLATFORM_QNX. 2013-04-12 23:43:46 -07:00
bkaradzic
253f313a34 Added wglSwapInterval and ARB_debug_output. Removed BX_UNUSED used for removing warnings when debug messages are compiled out. 2013-04-07 22:12:49 -07:00
bkaradzic
a26e06929e Fixed issue#26 blend factor logic. 2013-03-30 09:44:13 -07:00
bkaradzic
5b763a28bb Added blend factor/color blend modes support. 2013-03-29 22:58:50 -07:00
bkaradzic
365f2655b3 Added aditional render target color formats. 2013-03-28 22:34:59 -07:00
bkaradzic
6582276e3e Fixed L4 warnings. 2013-03-25 21:13:54 -07:00
bkaradzic
07dc7b2c5f Fixed GCC warning. 2013-03-24 09:06:43 -07:00
bkaradzic
137700d0a2 GL: Fixed initial value of binary shader hash. 2013-03-23 22:42:16 -07:00
bkaradzic
def008725c Fixed compile error. 2013-03-23 22:07:06 -07:00
bkaradzic
133c0f05db Fixed issue#24. 2013-03-23 17:58:56 -07:00
bkaradzic
9e825e3c77 Added GL clear quad. 2013-03-23 16:02:34 -07:00
bkaradzic
7c91a7d732 Fixed destroy msaa fbo at shutdown. 2013-03-09 16:17:38 -08:00
bkaradzic
a165353896 Removed fixed function alpha test. 2013-03-08 21:54:08 -08:00
bkaradzic
678da1c0b3 GL 3.1 core context cleanup. 2013-03-05 21:37:31 -08:00