Skip to content

Commit

Permalink
BUG: Fix rendering of 3D texture associated with the CUDA backend
Browse files Browse the repository at this point in the history
Fix #264 by addressing a regression introduced in 866a5d2 ("ENH: Add support
for 16 and 32-bit radiograph images", 2023-01-13)

This ensures the texture clamping mode is consistently set across all
dimensions.

Co-authored-by: David Allemang <david.allemang@kitware.com>
  • Loading branch information
jcfr and allemangD committed Mar 8, 2024
1 parent cebc017 commit 51882e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libautoscoper/src/gpu/cuda/cutil/cutil_create_tex_obj.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ inline cudaTextureObject_t createTexureObjectFromArray(cudaArray* arr, cudaTextu
texDesc.filterMode = cudaFilterModeLinear;
texDesc.addressMode[0] = cudaAddressModeClamp;
texDesc.addressMode[1] = cudaAddressModeClamp;
texDesc.addressMode[2] = cudaAddressModeClamp;
texDesc.readMode = readMode;

cudaTextureObject_t tex = 0;
Expand Down

0 comments on commit 51882e1

Please sign in to comment.