diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2021-11-22 14:14:55 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2021-11-26 12:09:09 +0100 |
commit | d4645875801d29402b1e3f2a42a5d9902a37a718 (patch) | |
tree | b81497857784e28ca0743b6ecbebb3299b8ef557 /include | |
parent | 64d42baf1bd15df8e0ecd00d89bb5c7be787cac2 (diff) | |
download | astra-d4645875801d29402b1e3f2a42a5d9902a37a718.tar.gz astra-d4645875801d29402b1e3f2a42a5d9902a37a718.tar.bz2 astra-d4645875801d29402b1e3f2a42a5d9902a37a718.tar.xz astra-d4645875801d29402b1e3f2a42a5d9902a37a718.zip |
De-duplicate 3D texture object creation
Diffstat (limited to 'include')
-rw-r--r-- | include/astra/cuda/3d/util3d.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/astra/cuda/3d/util3d.h b/include/astra/cuda/3d/util3d.h index 9fa254d..210d944 100644 --- a/include/astra/cuda/3d/util3d.h +++ b/include/astra/cuda/3d/util3d.h @@ -60,6 +60,8 @@ bool zeroVolumeArray(cudaArray* array, const SDimensions3D& dims); cudaArray* allocateProjectionArray(const SDimensions3D& dims); cudaArray* allocateVolumeArray(const SDimensions3D& dims); +bool createTextureObject3D(cudaArray* array, cudaTextureObject_t& texObj); + float dotProduct3D(cudaPitchedPtr data, unsigned int x, unsigned int y, unsigned int z); int calcNextPowerOfTwo(int _iValue); |