This is the branch with the port of the B3DAccelerator plugin to Metal. Most the examples in Balloon3D are working with this new plugin, after forcing it by modifying: B3DSceneMorph >> accelerationEnabled Shaders are now compiled in runtime, from source code which is embedded in a C-string. In addition to these changes, in the last commit I did some refactoring of the Metal VM code. I am copying the message of that commit:
You can view, comment on, or merge this pull request online at:https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/382 Commit Summary
File Changes
Patch Links:
— |
When I try and compile on 64-bit (build.macos64x64/squeak.cog.spur; macOS High Sierra 10.13.6; clang --version: Apple LLVM version 7.0.0 (clang-700.1.76) Target: x86_64-apple-darwin17.7.0) I get the following error message: ../../platforms/iOS/vm/OSX/sqSqueakOSXMetalView.m:79:17: error: ARC forbids Objective-C objects in struct that line is the "texture" declaration in typedef struct ExtraLayer — |
In reply to this post by David T Lewis
Not sure if this fits here, but if I download the latest Pharo 7 VM on macOS High Sierra, the VM seems not to start properly, resulting in a black window and:
I looked into this a while ago, and there should be some flags to enable Metal 1 compatibility, then we would get at least down to El Capitan support. Adding Metal as required dependency is a non-backwards-compatible change, this should be handled with care (e.g. do we need non-metal builds, archive old non-metal builds for older OSs?). — |
In reply to this post by David T Lewis
Merged #382 into Cog. — |
In reply to this post by David T Lewis
Hi @maenu,
— |
In reply to this post by David T Lewis
I will have a look, maybe @ronsaldo is even at PharoDays next week? — |
In reply to this post by David T Lewis
Sorry to revive the merged thread, but what is the state on this? I just built the macOS 64bit Pharo Cog VM on HighSierra, Metal seems to be enabled ( My current hypothesis is, that the downloaded VM is built on a newer macOS, which removes the compatibility for High Sierra. Anybody knows how this happens and how we could trick a newer macOS in building a VM with a High Sierra compatibility? The only thing I found to control compatibility is the — |
In reply to this post by David T Lewis
@maenu That is interesting. Did you download that VM from bintray? That also looks like an error from the older version. — |
In reply to this post by David T Lewis
@ronsaldo I got the VM with — |
Free forum by Nabble | Edit this page |