blob: 5ff6b8714d7a14be71687702ab4e3021ecd0779a [file] [log] [blame]
/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef skgpu_graphite_geom_VectorTypes_DEFINED
#define skgpu_graphite_geom_VectorTypes_DEFINED
#include "include/gpu/graphite/GraphiteTypes.h"
#include "include/private/SkVx.h"
namespace skgpu::graphite {
// Use familiar type names from SkSL.
template<int N> using vec = skvx::Vec<N, float>;
using float2 = vec<2>;
using float4 = vec<4>;
template<int N> using ivec = skvx::Vec<N, int32_t>;
using int2 = ivec<2>;
using int4 = ivec<4>;
template<int N> using uvec = skvx::Vec<N, uint32_t>;
using uint2 = uvec<2>;
using uint4 = uvec<4>;
}; // namespace skgpu::graphite
#endif // skgpu_graphite_geom_VectorTypes_DEFINED