Add single-arg constructor for vec2_s16.

This commit is contained in:
Jared Boone 2016-11-26 16:42:03 -08:00
parent 229616491c
commit cd31ae86d7

View File

@ -41,6 +41,12 @@ struct vec2_s16 {
{
}
constexpr vec2_s16(
const int16_t v
) : v { v, v }
{
}
constexpr vec2_s16(
const int16_t v0,
const int16_t v1