Hi I was wondering if there is an easy way to copy device memory directly into texture memory?
So I have an image I am working on via cuda kernels to preform different operations. Currently the output is being placed into an array in the following format:
__device__ ushort *image;
So is there anyway that I can easily transfer it to a texture memory, which I have in the following format:
Hi, thank you for the reply, I have tried that and am stuck at getting it to work, I mean it runs with no errors, but the output is not what is expected.
Currently all my texture data is being read as 0.
Data Declarations:
texture<ushort, 2, cudaReadModeElementType> texImage;
cudaChannelFormatDesc descTexImage = cudaCreateChannelDesc<ushort>();
ushort *host_Image;
__device__ ushort *dev_Image;
int imageW;
int imageH;