I'm having trouble figuring out how to make a 4 channel 1D texture for use with tex1D.
I can easily make a 2D 4 channel texture, from an MxNx4 numpy 3D array, using make_multichannel_2d_array and bind_array_to_texref. The third axis of the array has size 4 and becomes the 4 channels in a float4 texture. Works fine with tex2D. But I can't find a sequence of calls that takes an Nx4 numpy 2D array, with size 4 in the second axis, and turns it into a 4 channel 1D texture suitable for use with tex1D. I can't find something corresponding to make_multichannel_1d_array. So starting with an Nx4 2D numpy array, what sequence of calls do I need to make to get 1D texture with float4 elements? -- Dan _______________________________________________ PyCUDA mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
