3 #include "core/cl/include.h" 12 constexpr cl_float3 operator()(
const T& t)
const {
13 return cl_float3{{t.x, t.y, t.z, 0}};
19 constexpr cl_int3 operator()(
const T& t)
const {
20 return cl_int3{{t.x, t.y, t.z, 0}};
28 constexpr glm::vec3 operator()(
const T& t)
const {
29 return glm::vec3{t.x, t.y, t.z};
34 constexpr glm::vec3 to_vec3::operator()(
const cl_float3& t)
const {
35 return glm::vec3{t.s[0], t.s[1], t.s[2]};
39 constexpr glm::vec3 to_vec3::operator()(
const glm::vec3& t)
const {
45 constexpr glm::ivec3 operator()(
const T& t)
const {
46 return glm::ivec3{t.x, t.y, t.z};
51 constexpr glm::ivec3 to_ivec3::operator()(
const cl_int3& t)
const {
52 return glm::ivec3{t.s[0], t.s[1], t.s[2]};
56 constexpr glm::ivec3 to_ivec3::operator()(
const glm::ivec3& t)
const {
64 constexpr glm::vec2 operator()(
const T& t)
const {
65 return glm::vec2{t.x, t.y};
70 constexpr glm::vec2 to_vec2::operator()(
const cl_float2& t)
const {
71 return glm::vec2{t.s[0], t.s[1]};
75 constexpr glm::vec2 to_vec2::operator()(
const glm::vec2& t)
const {
81 constexpr glm::ivec2 operator()(
const T& t)
const {
82 return glm::ivec2{t.x, t.y};
87 constexpr glm::ivec2 to_ivec2::operator()(
const cl_int2& t)
const {
88 return glm::ivec2{t.s[0], t.s[1]};
92 constexpr glm::ivec2 to_ivec2::operator()(
const glm::ivec2& t)
const {
Definition: conversions.h:43
Definition: conversions.h:62
Definition: conversions.h:10
Definition: capsule_base.h:9
Definition: conversions.h:17
Definition: conversions.h:26
Definition: conversions.h:79