def __init__(self): self.d_params = cuda.mem_alloc( self.ntemporal_samples * DevSrc.max_params * 4) self.palette_surf_dsc = util.argset(cuda.ArrayDescriptor3D(), height=self.palette_height, width=self.palette_width, depth=0, format=cuda.array_format.SIGNED_INT32, num_channels=2, flags=cuda.array3d_flags.SURFACE_LDST) self.d_pal_array = cuda.Array(self.palette_surf_dsc)
def mkdsc(dim, ch): return argset(cuda.ArrayDescriptor(), height=dim.ah, width=dim.astride, num_channels=ch, format=cuda.array_format.FLOAT)
def mkdsc(dim, ch): return argset( cuda.ArrayDescriptor(), height=dim.ah, width=dim.astride, num_channels=ch, format=cuda.array_format.FLOAT )