Commit Graph

4002 Commits

Author SHA1 Message Date
Alex Szpakowski 601d4e120d don't need memory barriers for readonly storage textures. 2021-08-13 18:13:45 -03:00
Alex Szpakowski a551fcd492 Initial support for writing to textures in compute shaders. 2021-08-13 14:43:03 -03:00
Alex Szpakowski cffd485976 Allow rendering to integer textures. 2021-08-12 17:43:33 -03:00
Alex Szpakowski 48b3a4e860 Initial support for integer format textures.
They can't be rendered to and ImageData can't use the formats, for now.
2021-08-12 16:38:54 -03:00
Alex Szpakowski 4caeb27047 Slightly less heavy-handed compute memory barrier implementation.
Also validate whether there are any unbound writable resources when dispatching compute shader work.
2021-08-11 18:41:38 -03:00
Alex Szpakowski 1cf8f1192c vertex format table in newMesh uses the same fields as newBuffer.
Deprecate (but don't remove) the old {name, type, elementcount} vertex format style. The new style is {name=attributename, format=dataformat}.
2021-08-02 16:11:58 -03:00
Alex Szpakowski 92d0d1d60f love.graphics.validateShader no longer errors if the system doesn't support the shader 2021-07-18 14:09:28 -03:00
Alex Szpakowski 00494ec3b5 Error if image load/store is used since it's not supported yet. 2021-07-18 13:38:10 -03:00
Alex Szpakowski b644d00bf7 Add a more specific error message when compute shaders aren't supported
It already correctly errored, but the message was generic enough (GLSL 4 support) that it might be confusing.
2021-07-18 13:18:43 -03:00
Alex Szpakowski 80f051b97d Merge pull request #1715 from bjornbytes/compute-shaders
Compute Shaders
2021-07-18 13:09:48 -03:00
bjorn dc5f68e709 World's worst sync; 2021-07-17 20:02:04 -07:00
bjorn 9ae529b325 Flush batched draws before dispatching compute; 2021-07-17 19:58:14 -07:00
bjorn 13a10ac482 love.graphics.newComputeShader; 2021-07-17 19:58:11 -07:00
bjorn b28e61d00d Shader:getLocalThreadgroupSize; 2021-07-17 19:54:54 -07:00
bjorn 25fbf1d8ce love.graphics.dispatchThreadgroups; 2021-07-17 19:49:53 -07:00
bjorn 085ba2cb6e Add compute ShaderStage; 2021-07-17 19:46:05 -07:00
bjorn a1c79c45d8 Shader:hasStage; 2021-07-17 19:38:46 -07:00
bjorn f6559ce49e Add threadgroups{x,y,z} SystemLimits; 2021-07-17 19:38:45 -07:00
Alex Szpakowski d6dfa7412c Merge pull request #1713 from bjornbytes/fix-default-shader-storage-buffer
Fix default shader storage buffer initialization;
2021-07-01 21:52:41 -03:00
bjorn bbb4cd66be Fix default shader storage buffer initialization; 2021-07-01 17:22:03 -07:00
Alex Szpakowski 5ef1709c02 Expose love.markDeprecated.
Arguments are (level, name, apitype, deprecationtype [, replacementname]). Call it inside a function.
2021-06-06 18:16:56 -03:00
Alex Szpakowski 199632e791 Add love.parsedGameArguments and love.rawGameArguments tables.
They're the same as the global arg table and the result of love.arg.parseGameArguments, respectively. They only exist on the main thread.
2021-06-06 18:04:58 -03:00
Alex Szpakowski 3d32f1c7d0 iOS: Fix compile errors 2021-06-06 12:19:54 -03:00
Alex Szpakowski 47a9cb9cd5 Merge branch 'master' into 12.0-development 2021-06-06 11:52:15 -03:00
Alex Szpakowski 1e69a8c485 macOS: fix framework dependency paths in xcode 2021-06-06 11:46:22 -03:00
Alex Szpakowski 433190d1df Merge branch 'master' into 12.0-development 2021-06-06 11:43:54 -03:00
Miku AuahDark f272570797 Update license with new commit hash and URLs
* Update stb_image and dr_flac commit hash
* Update OpenAL-soft URL
2021-05-31 09:57:33 +08:00
Alex Szpakowski d899fe96b6 update dr_flac 2021-05-30 21:27:34 -03:00
Alex Szpakowski d419795a28 Expand stb_image thread-local workaround to apply to iOS devices 2021-05-30 21:12:45 -03:00
Alex Szpakowski df4519873c Add github build action for iOS.
Currently builds iOS Simulator only (to avoid needing code signing), with no artifacts.
2021-05-30 16:44:06 -03:00
Alex Szpakowski 5c3ff29a30 Update xcode project version 2021-05-30 16:42:29 -03:00
Alex Szpakowski 512b0b068c Fix release builds for iOS Simulator 2021-05-30 16:40:29 -03:00
Alex Szpakowski 042b0ffe31 Fix previous workaround commit... 2021-05-30 16:06:11 -03:00
Alex Szpakowski 13523f5a5a Update stb_image 2021-05-30 16:04:54 -03:00
Alex Szpakowski f20c637dd6 iOS: Fix simulator build 2021-05-30 16:04:37 -03:00
Alex Szpakowski aa8ed7c8c5 Revert change that added codepoint variant of Font:getWidth.
It could break code that relied on Lua's implicit conversion from numbers to strings.
2021-05-30 15:46:21 -03:00
Miku AuahDark 4fe21d40d1 Switch from Ubuntu 16.04 to 18.04
This is only for GitHub Actions artifacts (due to actions/virtual-environments#3287),
thus official releases will hopefully still based on 16.04.
2021-05-30 23:36:12 +08:00
Alex Szpakowski 838901f5dc Update readme with new macOS build instructions 2021-05-30 12:19:01 -03:00
Alex Szpakowski 5b4c4e5a0e github action for macOS archives .app file. 2021-05-30 12:07:02 -03:00
Alex Szpakowski 28a3dca937 Add github build action for macOS 2021-05-30 12:06:26 -03:00
Alex Szpakowski 3cf303adb3 macOS: build for arm64+x64.
Remove obsolete linker flags needed for LuaJIT 2.0.
2021-05-30 11:08:52 -03:00
Alex Szpakowski aeb2a853c7 macOS: xcode only looks for frameworks in platform/xcode/macosx/Frameworks.
A symlink can be used if other search locations are desired.
2021-05-30 11:07:53 -03:00
Alex Szpakowski 4e15df2df9 macOS: remove accidentally included Lua files from love.framework 2021-05-30 10:47:47 -03:00
Alex Szpakowski fbe8ce198c Add project-local macOS frameworks to gitignore 2021-05-30 10:45:58 -03:00
Alex Szpakowski 17c26dc902 Fix compile error on older C++ compilers 2021-04-20 19:18:59 -03:00
Alex Szpakowski 3d3c665f3c Fix Mesh:setVertexMap.
Fixes #1686
2021-04-20 19:09:20 -03:00
Alex Szpakowski e9c58c8192 Work around certain buggy Vivante GPU drivers on Android
love2d/love-android#204
2021-04-17 15:09:21 -03:00
Alex Szpakowski 977c690fa9 Fix physics meter value persisting after love.event.quit("restart").
Fixes #1685
2021-04-11 19:53:16 -03:00
Alex Szpakowski 14cda7818f Rename internal enum 2021-04-07 20:43:22 -03:00
Alex Szpakowski 9b4aea8f17 Missed some copyright date updates 2021-04-07 20:34:24 -03:00