Commit Graph

4391 Commits

Author SHA1 Message Date
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ć
9b218c9644 Cleanup. 2017-04-05 20:18:59 -07:00
Branimir Karadžić
42f6fe1430 33-pom: Fixed shaders. 2017-04-04 22:41:21 -07:00
Branimir Karadžić
8ca270a449 33-pom: Added screenshot. 2017-04-04 20:45:11 -07:00
Branimir Karadžić
25d7bf27ff Cleanup. 2017-04-04 20:10:57 -07:00
Branimir Karadžić
42aa94504e 33-pom: Built shaders and assets. 2017-04-04 19:47:18 -07:00
Apoorva Joshi
c50cc8493f Add parallax occlusion mapping example (#1104)
* Added example 33-pom

* Fixed warning in 33-pom example on Windows

* Deleted unused image files

* Deleted runtime textures and shaders
2017-04-04 09:52:08 -07:00
Branimir Karadžić
fc0dc6fd32 Updated TravisCI script. 2017-04-03 23:07:35 -07:00
Branimir Karadžić
da332df73b Updated AppVeyor CI script. 2017-04-03 22:58:45 -07:00
Branimir Karadžić
08041975d7 Updated AppVeyor CI script. 2017-04-03 22:58:02 -07:00
Branimir Karadžić
1327530d70 Bumped version. 2017-04-03 22:54:31 -07:00
Branimir Karadžić
967c811e10 mtl: Fixed build. 2017-04-03 23:00:19 -07:00
Branimir Karadžić
aeaf18f553 Updated TravisCI script. 2017-04-03 22:43:00 -07:00
Branimir Karadžić
63a5044d77 Updated TravisCI script. 2017-04-03 22:41:43 -07:00
Branimir Karadžić
8ce85d2462 Added bimg dependency. 2017-04-03 22:42:27 -07:00
Branimir Karadžić
423c655095 Cleanup. 2017-04-03 20:43:57 -07:00
Branimir Karadžić
8b94c13e32 shaderc: Parse in/out correctly. 2017-04-03 17:53:14 -07:00
Branimir Karadžić
f48540040d Cleanup. 2017-04-02 21:07:44 -07:00
Branimir Karadžić
dc16c17a5a Updated ImGui. 2017-04-02 10:45:31 -07:00
Branimir Karadžić
e492eb5132 Image code cleanup, preparing for split into new lib. 2017-04-01 14:54:18 -07:00
Branimir Karadžić
f760941d86 Updated README. 2017-04-01 14:42:23 -07:00
Branimir Karadžić
8499319009 Cleanup. 2017-03-31 21:01:08 -07:00
Branimir Karadžić
1d44a7a030 Updated glslang. 2017-03-31 19:51:51 -07:00
Branimir Karadžić
79ba213379 dxbc: Fixed udiv. 2017-03-31 12:40:23 -07:00
Branimir Karadžić
452cf95df5 Cleanup. 2017-03-30 23:39:35 -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ć
37c4cc138b Cleanup. 2017-03-30 20:47:39 -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ć
84a437fae4 Fixed GitHub license detection. 2017-03-29 00:29:47 -07:00
Branimir Karadžić
294f15fd5e Allow updating RO compute buffers. 2017-03-28 17:35:16 -07:00
Branimir Karadžić
ab42f6fdd8 Fixed reading corrupted PNG. 2017-03-28 17:34:52 -07:00
Branimir Karadžić
9b3031ab35 Force at least 1 uniform element. 2017-03-27 19:27:52 -07:00
Branimir Karadžić
f59b754274 Fixed warning. 2017-03-27 11:57:12 -07:00
Branimir Karadžić
f847ece352 Fixed shaderc makefile. 2017-03-26 21:11:07 -07:00
Branimir Karadžić
0aa79d3ac4 Cleanup. 2017-03-25 21:04:58 -07:00
Branimir Karadžić
379cd570f9 Merge pull request #1097 from olliwang/nanovg
Allows to set view id of NanoVG’s framebuffer manually.
2017-03-25 21:11:27 -07:00
Olli Wang
b761d1240c Allows to set view id of NanoVG’s framebuffer manually.
This commit changes the `nvgluCreateFramebuffer()` function to not assign a view id automatically as it would easily reach the limit of `uint8_t`. Instead, a new `nvgluSetViewFramebuffer()` function is created to allow users to assign the view id manually as mentioned in #1095.
2017-03-26 11:03:52 +08:00
Branimir Karadžić
29116854d8 Merge branch 'master' of github.com:bkaradzic/bgfx 2017-03-25 00:13:26 -07:00
Branimir Karadžić
0cc945c988 D3D12: Added info about both local and non-local memory. 2017-03-25 00:13:15 -07:00
Branimir Karadžić
24d84ef6af Removed VS2012 from CI. 2017-03-25 00:03:47 -07:00
Branimir Karadžić
837d92159a Rebuilt shaders. 2017-03-24 20:29:24 -07:00
Branimir Karadžić
d829148ef8 Updated glslang. 2017-03-24 20:03:12 -07:00
Branimir Karadžić
db3939ca16 Merge pull request #1093 from BrianHarris/master
Vulkan/Spirv updates
2017-03-24 17:06:24 -07:00
Brian Harris
c2d62c44ee Spirv compiler fixes 2017-03-24 15:20:38 -05:00
Brian Harris
38226cf2c5 Vulkan fixes 2017-03-24 15:20:16 -05:00
Branimir Karadžić
acdbb5d01a Merge pull request #1092 from jdryg/nanovg_update_image_fix
nvgRenderUpdateTexture() was reading past the end of the data buffer.
2017-03-24 08:43:52 -07:00
jdryg
b23af90947 nvgRenderUpdateTexture() was reading past the end of the data buffer. 2017-03-24 11:59:16 +02:00
Branimir Karadžić
082b2a0c02 Fixed issue #1085. 2017-03-23 20:27:16 -07:00