def __init__(self, width, height, engine, *, cuda=False):
        """
        The depth camera needs OpenGL > 4.3 if you want to use CUDA
        """
        self.BUFFER_W, self.BUFFER_H = width, height
        # create
        super(DepthCamera, self).__init__(engine, cuda)
        if self.enable_cuda:
            self.shader_local_size = (16, 16)
            self.engine.taskMgr.add(self._dispatch_compute)

        # display region
        self.quad = None
        self.quadcam = None

        The depth camera needs OpenGL > 4.3 if you want to use CUDA
        
metadrive/component/sensors/depth_camera.py