This file contains hidden or 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
#!/bin/bash | |
# Sync two git LFS remotes. This is very useful when you | |
# have two remotes (e.g. upstream and fork) and they have | |
# different files on the LFS storage. Trying git lfs fetch --all | |
# yields an error for missing objects if the two repos are not | |
# synced. The purpose of this script is to overcome this issue | |
# with Git LFS | |
# | |
# Usage: git-lfs-sync.sh source destination branch | |
# |
This file contains hidden or 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
// This works (compiled with: fxc /T ps_5_0 /E main foo.hlsl) | |
float main (in uint x:X) : SV_Target0 | |
{ | |
float a[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; | |
// Put some things in the array | |
a[x] = 47.0; | |
a[x&7] = 42.0; | |
a[(x+1)%12] = 3.14159; |