Added framebuffer and related attributes to XRWebGLLayer

This commit is contained in:
Alan Jeffrey 2019-07-17 18:09:15 -05:00
parent dc1da02aa4
commit aa0a72df0f
10 changed files with 158 additions and 46 deletions

View file

@ -103,7 +103,7 @@ impl XRSession {
ret
}
pub fn with_session<F: FnOnce(&Session)>(&self, with: F) {
pub fn with_session<R, F: FnOnce(&Session) -> R>(&self, with: F) -> R {
let session = self.session.borrow();
with(&session)
}