summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2021-11-22 14:43:07 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2021-11-26 12:09:09 +0100
commitbe2da43a560a7241c56e727fb481f1389e9f7fdf (patch)
tree318df874ff0efb63d01749006f09318289d0844b /include
parentc11ee1cffd53bdf4530eb4381bf484cd1a1ce9cb (diff)
downloadastra-be2da43a560a7241c56e727fb481f1389e9f7fdf.tar.gz
astra-be2da43a560a7241c56e727fb481f1389e9f7fdf.tar.bz2
astra-be2da43a560a7241c56e727fb481f1389e9f7fdf.tar.xz
astra-be2da43a560a7241c56e727fb481f1389e9f7fdf.zip
De-duplicate 2D texture object creation
Diffstat (limited to 'include')
-rw-r--r--include/astra/cuda/2d/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/astra/cuda/2d/util.h b/include/astra/cuda/2d/util.h
index 0fab9b1..cacf0a9 100644
--- a/include/astra/cuda/2d/util.h
+++ b/include/astra/cuda/2d/util.h
@@ -66,6 +66,10 @@ bool zeroProjectionData(float* D_ptr, unsigned int pitch, const SDimensions& dim
void duplicateVolumeData(float* D_dst, float* D_src, unsigned int pitch, const SDimensions& dims);
void duplicateProjectionData(float* D_dst, float* D_src, unsigned int pitch, const SDimensions& dims);
+bool createTextureObject2D(float* data, cudaArray*& dataArray, cudaTextureObject_t& texObj, unsigned int pitch, unsigned int width, unsigned int height);
+bool createTextureObjectPitch2D(float* data, cudaTextureObject_t& texObj, unsigned int pitch, unsigned int width, unsigned int height, cudaTextureAddressMode mode = cudaAddressModeBorder);
+
+
bool checkCuda(cudaError_t err, const char *msg);
float dotProduct2D(float* D_data, unsigned int pitch,