def _create_buffer(self, width, height, frame_buffer_property):
        """
        Create the buffer object to render the scene into it. Use 3 channels speed up the data retrieval for RGB Camera.
        Args:
            width: image width
            height: image height
            frame_buffer_property: panda3d.core.FrameBufferProperties

        Returns: buffer object

        """
        if frame_buffer_property is None:
            frame_buffer_property = FrameBufferProperties()
        frame_buffer_property.set_rgba_bits(8, 8, 8, 0)  # disable alpha for RGB camera
        self.buffer = self.engine.win.makeTextureBuffer(
            self.__class__.__name__, width, height, fbp=frame_buffer_property
        )

        Create the buffer object to render the scene into it. Use 3 channels speed up the data retrieval for RGB Camera.
        Args:
            width: image width
            height: image height
            frame_buffer_property: panda3d.core.FrameBufferProperties

        Returns: buffer object

        
metadrive/component/sensors/rgb_camera.py