Hi forum,
Please check the following snippet:
void setupTexture(int x, int y)
{
// Wrap mode appears to be the new default
texref.filterMode = cudaFilterModeLinear;
cudaChannelFormatDesc desc = cudaCreateChannelDesc<float2>();
cudaMallocArray(&array, &desc, y, x);
cutilCheckMsg("cudaMalloc failed");
}
An array is created. Is it a 1D array or 2D array or linearized 2D array ?
Regards
Sajjad