[ ] New Feature (doesn't break Module <-> Lua compatibility)
[x] New Feature (breaks Module <-> Lua compatibility)
[x] Documentation Update Required
Tested Targets (only applicable for changes to the binary module, delete otherwise)
[x] windows-x64-release
[ ] windows-x86-release
Checklist
[x] I have read and understand the contributing guidelines
[ ] I have tested all aspects of this PR (not required)
Description
Allows Lua and C++ to clone RenderTargets. C++ has to delete them, but Lua clones are garbage collected.
I did not test all aspects. I didn't have enough time to test if MIPs worked correctly, but they should if you see how I made the Clone function and given that the base image (MIP 0) works fine.
I used some code that's internal to my codebase but otherwise readable.
This code passed.
Fixes #82
PR Type (tick all that are applicable)
Tested Targets (only applicable for changes to the binary module, delete otherwise)
Checklist
Description Allows Lua and C++ to clone
RenderTarget
s. C++ has todelete
them, but Lua clones are garbage collected.I did not test all aspects. I didn't have enough time to test if MIPs worked correctly, but they should if you see how I made the Clone function and given that the base image (MIP 0) works fine.
I used some code that's internal to my codebase but otherwise readable. This code passed.