Commit Graph

5134 Commits

Author SHA1 Message Date
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 99af5765fc tests: don't skip love.graphics.isActive test on vulkan 2024-03-07 21:00:45 -04:00
Sasha Szpakowski 3509e651fd Fix Texture:getWidth for texture views. 2024-03-06 14:23:18 -04:00
Sasha Szpakowski 3f25183d03 Merge pull request #2030 from ellraiser/main
small test update
2024-03-06 08:11:15 -04:00
ell c4fd14c4fd handle missing expected img for compareImg() 2024-03-06 09:41:57 +00:00
ellraiser ea215ad31c Merge branch 'love2d:main' into main 2024-03-06 09:19:02 +00:00
ell 81599fed93 small update
- removed assertPixels()
- added exportImg() to help graphics test writing (sets the "expected" image for the test)
- added "deflate" variants to love.data.compress()
2024-03-06 09:18:44 +00:00
Sasha Szpakowski 32e777c156 vulkan: fix a crash. 2024-03-05 23:03:55 -04:00
Sasha Szpakowski 026e9f164a tests: add a few more shader uniform tests 2024-03-05 21:01:05 -04:00
Sasha Szpakowski 01fbedb225 vulkan: improve some error messages when shader compilation fails. 2024-03-03 12:40:23 -04:00
Sasha Szpakowski 7798a5eed3 Merge pull request #2028 from ellraiser/main
more test coverage
2024-02-29 14:09:02 -04:00
ell c7e7565a3c indentation 2024-02-29 17:49:24 +00:00
ellraiser 5e9de41986 Merge branch 'love2d:main' into main 2024-02-29 10:38:30 +00:00
ell ced6448011 attempt to fix opengl ES not running as ES on windows runner 2024-02-29 10:17:14 +00:00
ell 23bd9110dd add callback variant for love.graphics.captureScreenshot 2024-02-29 09:54:49 +00:00
ell 3dfa13e60c requested changes 2024-02-29 09:20:18 +00:00
Sasha Szpakowski fe56f88f8e opengl es: expand support for rendering to floating point formats. 2024-02-28 17:55:37 -04:00
ell 7cc3816bec finish physics module coverage
- love.physics.World:rayCastAny()
- love.physics.World:rayCastClosest()
- love.physics.World:getShapesInArea()
- love.physics.Body:getShapes()
- love.physics.Body:getShape()
- love.physics.Body:hasCustomMassData()
2024-02-28 18:38:43 +00:00
ellraiser 3723e35caa Merge branch 'love2d:main' into main 2024-02-28 17:51:06 +00:00
ell 990259edf9 more tests
- added custom error handler so that love is closed if a crash occurs rather than hang on the graphic screen (for runner crashes mainly)

- updated missing functions left todo in todo.md and removed list from readme.md to make it easier to keep track of

- added love.audio.getPlaybackDevice(), love.audio.getPlaybackDevices(), love.audio.setPlaybackDevice()

- added love.data.ByteData:setString()

- added love.filesystem.getFullCommonPath(), love.filesystem.mountFullPath(), love.filesystem.unmountFullPath(), love.filesystem.moundCommonPath(), plus optional b/t/bt params to love.filesystem.load()

- added love.keyboard.isModifierActive()

- added love.sound.SoundData:copy() and love.sound.SoundData:slice()

- added love.graphics.Texture:isCanvas() and love.graphics.Texture:isComputeWritable()

- added love.image.ImageData:isLinear(), love.image.ImageData:setLinear(), and love.image.ImageData:encode("*.exr")

- added love.image.CompressedImageData:isLinear() and love.image.CompressedImageData:setLinear()

- added love.system.getPreferredLocales()

- added love.window.focus() and removed love.window.close() (now deprecated)
2024-02-28 17:49:51 +00: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 57fab45c2c tests: draw points at the center instead of corner of pixels. 2024-02-27 22:54:37 -04:00
Miku AuahDark 6d15098ce2 Android: Workaround Java out of memory, attempt 2. 2024-02-27 11:18:42 +08:00
Miku AuahDark 60d4de1a6c CI: Add Android build steps. 2024-02-26 21:19:11 +08:00
Miku AuahDark 7fda266d0a Fix pdbstr and srctool extraction. 2024-02-26 20:44:32 +08:00
Miku AuahDark 72d6d8f64f Windows: Use another way to get pdbstr and srctool for source indexing. 2024-02-26 20:41:50 +08: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 c7e4dafd88 CI: pull megasource's main branch 2024-02-19 12:11:15 -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 2aa4e4b3ea Updated changes.txt 2024-02-13 01:20:10 +00:00
EngineerSmith cbf7e5680a Added old functionality back, and marked it as deprecated 2024-02-13 01:01:18 +00:00
Sasha Szpakowski 1bdb5ded50 CI: update action versions 2024-02-12 20:32:44 -04: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