Example #1
0
        public static TexRef Create()
        {
            TexRef result = new TexRef();

            CudaUtil.Call(cuTexRefCreate(out result.handle));
            return(result);
        }
Example #2
0
        public TexRef GetTexRef(string name)
        {
            TexRef result = new TexRef();

            CudaUtil.Call(cuModuleGetTexRef(out result.handle, handle, name));
            return(result);
        }
Example #3
0
 public void SetTexRef(TexRef texRef)
 {
     CudaUtil.Call(cuParamSetTexRef(handle, CU_PARAM_TR_DEFAULT, texRef.handle));
 }