0 votes
by (390 points)

jobject * outSurface = NULL;
int ret = PxrGetLayerAndroidSurface(0, PXREYE_LEFT, outSurface);

上述代码ret返回-4,logcat中提示Pxr_GetLayerAndroidSurface failed, androidSurface is NULL,这是什么原因呢?

SDK用的是PicoSDK_Native-2.0.1有个CubeXR示例程序,我在这个上面做的测试。
PUI 4.7.5 NEO3

1 Answer

0 votes
by (37.0k points)

开发者你好,
SDK文档所述,需要在 PxrCreateLayer 中 设置 layerFlags = PXRLAYERFLAGANDROID_SURFACE 后才可以的
enter image description here

...