Esempio n. 1
0
        public static TexRef Create()
        {
            TexRef result = new TexRef();

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

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