We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参考:
在创建 WebGL 上下文时,传入 xrCompatible 配置项:
xrCompatible
const gl = canvas.getContext("webgl", {xrCompatible: true});
在创建 WebGPU 时,传入 xrCompatible 配置项:
const gpuAdapter = await navigator.gpu.getAdapter({xrCompatible: true}); const gpuDevice = await gpuAdapter.requestDevice(); const xrGpuBinding = new XRGPUBinding(xrSession, gpuDevice); const projectionLayer = xrGpuBinding.createProjectionLayer();
开发调试使用:https://blog.mozvr.com/webxr-viewer-2-0-released/
The text was updated successfully, but these errors were encountered:
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Title: WebGL & WebGPUDeviceContribution supports WebXR configuration items
Sorry, something went wrong.
xiaoiver
No branches or pull requests
参考:
在创建 WebGL 上下文时,传入
xrCompatible
配置项:在创建 WebGPU 时,传入
xrCompatible
配置项:开发调试使用:https://blog.mozvr.com/webxr-viewer-2-0-released/
The text was updated successfully, but these errors were encountered: