MeshLib C++ Docs
Loading...
Searching...
No Matches
MRCudaMath.h
Go to the documentation of this file.
1#pragma once
2#ifndef MR_PARSING_FOR_PB11_BINDINGS
3
4#include "exports.h"
5
6#include "MRMesh/MRMeshFwd.h"
7
8#ifndef __HIP_PLATFORM_AMD__
9struct float3;
10struct int3;
11#else
12template<typename T, unsigned int rank>
13struct HIP_vector_type;
14
15using float3 = HIP_vector_type<float, 3>;
16using int3 = HIP_vector_type<int, 3>;
17#endif
18
19namespace MR::Cuda
20{
21
22// structs from MRCudaMath.cuh
23struct Matrix4;
24
25// copy from CPU to GPU structs
26MRCUDA_API float3 fromVec( const Vector3f& v );
27MRCUDA_API int3 fromVec( const Vector3i& v );
28MRCUDA_API Matrix4 fromXf( const MR::AffineXf3f& xf );
29
30} // namespace MR::Cuda
31#endif
Definition MRCudaBasic.h:11
MRCUDA_API Matrix4 fromXf(const MR::AffineXf3f &xf)
MRCUDA_API float3 fromVec(const Vector3f &v)
MRMESH_CLASS Vector3< double > Matrix2< double > Matrix4
Definition MRMesh/MRMeshFwd.h:202
Definition MRMatrix4.h:20