Skip to content
New issue

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

[WebXR] Pass depth texture in frame data #15396

Merged
merged 1 commit into from
Jul 14, 2023

Commits on Jul 14, 2023

  1. [WebXR] Pass depth texture in frame data

    https://bugs.webkit.org/show_bug.cgi?id=258661
    rdar://111501806
    
    Reviewed by Dean Jackson.
    
    Render to compositor provided depth-stencil buffers.
    
    * Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp:
    (WebCore::createAndBindCompositorTexture):
    (WebCore::createAndBindCompositorBuffer):
    (WebCore::makeEGLImageSource):
    (WebCore::WebXROpaqueFramebuffer::create):
    (WebCore::WebXROpaqueFramebuffer::~WebXROpaqueFramebuffer):
    (WebCore::WebXROpaqueFramebuffer::startFrame):
    (WebCore::WebXROpaqueFramebuffer::endFrame):
    (WebCore::WebXROpaqueFramebuffer::setupFramebuffer):
    (WebCore::WebXROpaqueFramebuffer::allocateColorStorage):
    (WebCore::WebXROpaqueFramebuffer::allocateDepthStencilStorage):
    (WebCore::WebXROpaqueFramebuffer::bindDepthStencilBuffer):
    * Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.h:
    * Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm:
    (WebCore::GraphicsContextGLCocoa::createAndBindEGLImage):
    * Source/WebCore/platform/xr/PlatformXR.h:
    (PlatformXR::Device::FrameData::LayerData::encode const):
    (PlatformXR::Device::FrameData::LayerData::decode):
    
    Canonical link: https://commits.webkit.org/266053@main
    djg committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    9e2a90f View commit details
    Browse the repository at this point in the history