Commit Graph

4222 Commits

Author SHA1 Message Date
Bart van Strien daff7ef11f Adjust OpenAL include paths to proper include paths
We add the subdirectory AL to the include paths, so our includes should be relative to that. Presumably it would previously work with the wrong paths because some other library would be there.
2024-03-10 14:41:28 +01:00
Sasha Szpakowski b6c47cd3ec vulkan: fix typo preventing storage textures in shaders from working. 2024-03-09 16:09:26 -04:00
Sasha Szpakowski b08f35d341 vulkan: only set cubemap compatibility for array textures with >= 6 layers. 2024-03-09 16:01:26 -04:00
Sasha Szpakowski 892411a737 don't error during newShader if a buffer is unused. 2024-03-09 13:22:39 -04:00
Sasha Szpakowski 10565e9967 vulkan: improve draw performance via Shader::cmdPushDescriptorSets. 2024-03-09 13:22:15 -04:00
Sasha Szpakowski be377601f7 vulkan: shader binding mapper works with arrays of resources 2024-03-09 13:07:23 -04:00
Sasha Szpakowski 51d5773b93 vulkan: optimize vertex buffer binding code 2024-03-09 00:15:13 -04:00
Sasha Szpakowski 52f33041a5 Fix Shader:send with storage buffers. 2024-03-08 17:52:48 -04:00
niki ca0264e906 vulkan: fix #2032
when using the low level vertexmain and pixelmain entry points
it can happen that there are no local uniforms used.
2024-03-08 13:42:05 +01:00
Sasha Szpakowski 8dae72b88e vulkan: fix shader:send(texture|buffer) not calling love.graphics.flushBatch. 2024-03-07 23:04:22 -04:00
Sasha Szpakowski c35b9cba4a vulkan: fix a potential error during draws. 2024-03-07 22:31:05 -04:00
Sasha Szpakowski 321143755f metal: clean up some shader resource binding code 2024-03-07 21:53:40 -04:00
Sasha Szpakowski ad42570cef Fix compile errors on Linux/Android 2024-03-07 21:37:21 -04:00
Sasha Szpakowski 2079f657e7 graphics: most uniform reflection is handled at a higher level instead of backend code.
Fixes boolean uniforms when Metal is used.
2024-03-07 21:24:11 -04:00
Sasha Szpakowski 3509e651fd Fix Texture:getWidth for texture views. 2024-03-06 14:23:18 -04:00
Sasha Szpakowski 32e777c156 vulkan: fix a crash. 2024-03-05 23:03:55 -04:00
Sasha Szpakowski 01fbedb225 vulkan: improve some error messages when shader compilation fails. 2024-03-03 12:40:23 -04:00
Sasha Szpakowski fe56f88f8e opengl es: expand support for rendering to floating point formats. 2024-02-28 17:55:37 -04:00
Sasha Szpakowski 8ba72d8cf1 opengl: the computewrite flag isn't supported for sRGB textures. 2024-02-28 13:20:11 -04:00
Sasha Szpakowski ff06718f8a opengl: only populate Shader:getWarnings string when there are warnings. 2024-02-27 23:17:24 -04:00
Sasha Szpakowski ed6a50178c Filled polygons have texture coordinates computed from their bounds.
Fixes #1951.
2024-02-25 20:09:06 -04:00
Sasha Szpakowski bb7312e057 luasocket: restore code to compile unix sockets on windows. 2024-02-25 14:39:40 -04:00
Sasha Szpakowski 5907a7efe7 Update luasocket to lunarmodules/luasocket@98be8d9
Fixes #1663.
2024-02-25 14:25:36 -04:00
Sasha Szpakowski 476e520969 Fix pointer alignment of default random generator object. 2024-02-25 11:51:33 -04:00
Sasha Szpakowski e20f018272 Change the 'viewformats' texture setting field to be a list of pixel formats.
Replace Texture:hasViewFormats with Texture:getViewFormats.
2024-02-24 23:42:28 -04:00
Sasha Szpakowski 42812ad521 Add texture views. Fixes #2022.
Add love.graphics.newTextureView(basetexture, viewsettings). Requires GLSL4 support.
Add 'viewformats' boolean setting to texture setting tables.
Add Texture:hasViewFormats.

The viewsettings table has the following fields:
  format = nil, -- set this to a pixel format to override the base format. It must have the same number of bytes per pixel as the original, and the 'viewformats' setting on the original texture must be true for this to work. Cannot be used for compressed or depth/stencil textures.
  type = nil, -- set this to a texture type to override the base texture type. 2d base textures can make [2d, array] views. [array, cube] base textures can make [2d, array, cube] views.
  mipmapstart = nil, -- set to a number to use a less detailed mipmap level as a base.
  mipmapcount = nil, -- set to a number to override the number of mipmaps in the texture view.
  layerstart = nil, -- set to a number to use a specific layer or cube face as a base.
  layers = nil, -- set to a number to override the number of layers in an array texture view.
2024-02-24 15:45:43 -04:00
Sasha Szpakowski 1e97e09b28 Rework internal module registration to happen in constructors. 2024-02-24 15:21:38 -04:00
Sasha Szpakowski d2eca731d4 Remove Data:getInt64 and ByteData:setInt64.
Lua numbers don't cover the full range for 64 bit integers, so those methods couldn't be reliable.
2024-02-18 17:22:31 -04:00
Sasha Szpakowski ae6800e0e0 Add Data:performAtomic to lock a mutex while using a Data object. 2024-02-18 17:07:24 -04:00
Sasha Szpakowski 007090af14 ImageData: remove automatic mutex locks. 2024-02-18 17:06:40 -04:00
Sasha Szpakowski d880c48502 Clean up some internal texture data upload parameters. 2024-02-17 14:10:38 -04:00
Sasha Szpakowski 81d0c720a2 Fix compressed texture uploads using the wrong pixel format. 2024-02-17 14:00:31 -04:00
Sasha Szpakowski 1084d94f90 Fix missing sRGB<->Linear pixel format swaps for DXT and BC formats. 2024-02-17 13:16:10 -04:00
Sasha Szpakowski 483237ee30 Merge pull request #2018 from EngineerSmith/hash
Added container type argument for love.data.hash
2024-02-13 21:20:07 -04:00
EngineerSmith cbf7e5680a Added old functionality back, and marked it as deprecated 2024-02-13 01:01:18 +00:00
Sasha Szpakowski ec177d51d1 deprecate love.window.close. 2024-02-12 20:06:55 -04:00
Sasha Szpakowski 25e008e20c metal: remove a redundant memcpy when uploading pixels to a texture. 2024-02-10 23:17:10 -04:00
Sasha Szpakowski 7823ed476a Avoid non-ASCII characters in printed help text. 2024-02-10 19:01:48 -04:00
Sasha Szpakowski 64a30f177f Merge branch 'main' into 12.0-development 2024-02-10 12:24:48 -04:00
Sasha Szpakowski 94d5864144 update year for copyright notice 2024-02-10 12:13:22 -04:00
EngineerSmith d125921c24 Added container type to w_hash 2024-02-09 00:29:12 +00:00
Sasha Szpakowski 8d73622311 Fix compilation 2024-02-04 23:18:40 -04:00
Sasha Szpakowski d5282339a2 Merge branch 'main' into 12.0-development 2024-02-04 23:07:50 -04:00
Sasha Szpakowski 5d11b095e8 Fix loading code-signed games on Windows with non-ascii paths.
Use DroppedFile (renamed to NativeFile in love 12) instead of C file APIs. NativeFile properly handles unicode file paths on Windows.
2024-02-03 12:06:27 -04:00
Sasha Szpakowski 50b18d1ac7 Add love.mouse.getGlobalPosition. Useful for custom window dragging. 2024-01-13 18:06:37 -04:00
Sasha Szpakowski bf6a6f1237 metal: error when generated SPIR-V shader IR can't be parsed 2024-01-09 21:29:54 -04:00
Sasha Szpakowski 7ff6f74a92 metal: improve shader resource binding code. 2024-01-09 21:11:04 -04:00
Sasha Szpakowski fb002ee59b opengl: fixes for default storage buffer bindings. 2024-01-09 21:10:20 -04:00
Sasha Szpakowski 8bf04df6e1 Fix uninitialized pointers leading to crashes 2024-01-08 22:31:06 -04:00
Sasha Szpakowski 3e8345280f Move default texel and shader storage buffers to high level code. 2024-01-08 22:13:47 -04:00