[app,fw] Pass color information into the shader

This commit is contained in:
Eryn Wells 2017-08-08 11:52:48 -07:00
parent 48748f53e7
commit c84681559e
3 changed files with 48 additions and 44 deletions

View file

@ -15,3 +15,11 @@ extension UnsafeMutableRawPointer {
return advanced(by: stride)
}
}
/// Metal's float4 type. 4 bytes per float, 16 bytes total, 16 byte aligned.
struct Float4 {
var x: Float = 0
var y: Float = 0
var z: Float = 0
var w: Float = 0
}