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

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

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