Commit Graph

1336 Commits

Author SHA1 Message Date
bjorn c3b79b7274 Use updateWindow in fake headset getDisplayDimensions; 2018-08-20 15:09:08 -07:00
bjorn 5a55e56d9c Add sleep back to main loop;
To avoid pegging the CPU.
2018-08-20 14:48:06 -07:00
Bjorn Swenson 72b2dca38d
Merge pull request #52 from mcclure/no_openal_pr
Introduce -DUSE_OPENAL=0 CMake option which prevents inclusion of OpenAL
2018-08-20 13:42:49 -07:00
mcc 883883f0fa Introduce -DUSE_OPENAL=0 CMake option which prevents inclusion of OpenAL 2018-08-20 16:33:16 -04:00
mcc f69f6169fe Fix ControllerButton ordering, which broke isDown
The first item in ControllerButtons was NULL, which meant luaL_checkoption could not work.
2018-08-20 13:29:45 -04:00
bjorn 1f00948da0 Fix world/collider memory leaks; 2018-08-18 21:16:19 -07:00
bjorn d2b6def5c2 Shader:sendImage;
Can be used to bind images with specific slices, mipmap levels,
and access hints.
2018-08-17 19:53:54 -07:00
bjorn cab12ba945 Shader:setBlock accepts access hint; 2018-08-17 19:53:54 -07:00
bjorn a32b53b2cc UniformAccess for read/write block/image hints; 2018-08-17 19:53:54 -07:00
bjorn 198400828d Source:getType; 2018-08-17 19:53:54 -07:00
bjorn b5d7c0742f Fix Texture:setFilter; 2018-08-17 19:53:54 -07:00
bjorn 3eca158025 ty compiler; 2018-08-16 17:54:48 -07:00
bjorn 255bf4cb62 Load modules from lua_modules to support luarocks; 2018-08-16 14:57:31 -07:00
bjorn 96cfeedc94 Add rg16f and rg32f texture formats; 2018-08-16 14:54:37 -07:00
bjorn bd1bb5850e Load HDR files in floating point format; 2018-08-16 14:28:10 -07:00
bjorn a30fdc9749 Texture:getFormat; 2018-08-16 14:27:45 -07:00
bjorn 3d691ed087 Use defines to shrink stb_image footprint; 2018-08-16 14:21:24 -07:00
bjorn 7f158a3473 Tiny fix for headset msaa default; 2018-08-15 17:57:05 -07:00
bjorn 29e733503f Canvas works with new texture allocation method; 2018-08-15 17:56:19 -07:00
bjorn d036388209 Fix GL_IMAGE_2d constant; 2018-08-15 16:55:50 -07:00
bjorn a18540a934 Proper validation of uniform texture types; 2018-08-13 17:03:39 -07:00
bjorn c03ca73fba Use ifdefs for nvidia glsl extensions;
I think they still work if I do this.
2018-08-13 17:03:39 -07:00
bjorn 0e0ac05c6f Attempt towards more comprehensive barriers; 2018-08-11 21:17:22 -07:00
bjorn 246e9b13b9 Better shader compilation error messages; 2018-08-11 00:09:47 -07:00
bjorn 1295481dc0 Better error message; 2018-08-11 00:09:47 -07:00
bjorn cc440c9784 Support format parameter in newTextureData; 2018-08-11 00:09:47 -07:00
bjorn 58dc34ec64 Proper format support for image uniforms; 2018-08-11 00:08:34 -07:00
bjorn 7528ac2db8 Fix texture format for image uniforms; 2018-08-11 00:08:34 -07:00
bjorn a1f200cb61 Use GLSL version 430 for compute shaders; 2018-08-11 00:08:34 -07:00
bjorn 6d10f5c7d0 Post-merge fixes; 2018-08-11 00:08:34 -07:00
bjorn 9ce462a67f Image uniforms; 2018-08-11 00:08:34 -07:00
bjorn d961614184 Attempt automatic glMemoryBarrier; 2018-08-11 00:08:34 -07:00
bjorn 9e111071e8 webgl stuff;
I shouldn't need to do this but will fix it later.
2018-08-11 00:08:34 -07:00
bjorn c3823a6f9a ARB_shader_image_load_store; rm opengl es from glad;
This means we had to remove rgb565 and FRAMEBUFFER_INCOMPLETE_DIMENSIONS.
2018-08-11 00:08:34 -07:00
bjorn 902239c017 lovr.graphics.wait; Barrier; 2018-08-11 00:08:34 -07:00
bjorn 94b15c40c2 line 0 in compute prefix; 2018-08-11 00:08:34 -07:00
bjorn b891a930bf shaders.c: consistent ordering in header and implementation; 2018-08-11 00:08:34 -07:00
bjorn 5c65fc811f Change "drawing" to "rendering" in comments; 2018-08-11 00:08:33 -07:00
bjorn 3dabe0cf34 setShader errors on compute shaders; 2018-08-11 00:08:33 -07:00
bjorn e371359193 Compute shader glsl prefix; 2018-08-11 00:08:33 -07:00
bjorn 98e518683a Add computeshaders to lovr.graphics.getSupported; 2018-08-11 00:08:33 -07:00
bjorn 3b51056870 lovr.graphics.compute; 2018-08-11 00:08:33 -07:00
bjorn 2cb6de47f2 Compute shader creation; 2018-08-11 00:08:33 -07:00
bjorn b1079f5ce8 Separate initialization for graphics/compute shaders; 2018-08-11 00:08:33 -07:00
bjorn bf3ed3ed1f Texture improvements;
Textures no longer keep references to their TextureData.
lovrTextureAllocate can now be used to allocate texture storage,
and isn't weirdly coupled to lovrTextureReplacePixels.
Better error messages for textures.
2018-08-09 16:12:57 -07:00
Bjorn Swenson 06379f33ee
Merge pull request #49 from bjornbytes/shader-block
ShaderBlock
2018-08-07 15:17:06 -07:00
bjorn ae70728ae1 Ok is this a driver bug or what; 2018-08-07 13:26:28 -07:00
bjorn 78d9cc0031 Actually set shader uniforms; 2018-08-06 13:44:46 -07:00
bjorn 8f529d3a37 Fix potential infinite loop in error handler; 2018-08-06 13:26:17 -07:00
bjorn 175de8924f Ensure uniform count is always positive; 2018-08-06 13:25:04 -07:00