This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://github.com/Unity-Technologies/arfoundation-samples/blob/6296272a416925b56ce85470e0c7bef5c913ec0c/Assets/Scripts/CpuImageSample.cs | |
private static void UpdateRawImage(RawImage rawImage, XRCpuImage cpuImage) | |
{ | |
// Get the texture associated with the UI.RawImage that we wish to display on screen. | |
var texture = rawImage.texture as Texture2D; | |
// If the texture hasn't yet been created, or if its dimensions have changed, (re)create the texture. | |
// Note: Although texture dimensions do not normally change frame-to-frame, they can change in response to | |
// a change in the camera resolution (for camera images) or changes to the quality of the human depth | |
// and human stencil buffers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# full diff | |
git diff <SHA1> <SHA1> -- `find . -name '<pattern>'` | |
# only file names | |
git diff <SHA1> <SHA1> --name-status -- `find . -name '<pattern>'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Add the toolchain/test PPA* | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install g++-4.8 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50 | |
*If you ever want to update symlinks for a future version:* | |
sudo rm /usr/bin/g++ | |
sudo ln -s /usr/bin/g++-4.XXX /usr/bin/g++ |