Skip to content

Commit 51c7c26

Browse files
Re-sync with internal repository (#348)
The internal and external repositories are out of sync. This Pull Request attempts to brings them back in sync by patching the GitHub repository. Please carefully review this patch. You must disable ShipIt for your project in order to merge this pull request. DO NOT IMPORT this pull request. Instead, merge it directly on GitHub using the MERGE BUTTON. Re-enable ShipIt after merging. fbshipit-source-id: bf1f503a673282d805f454227e7c60a917fee9dc Co-authored-by: Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
1 parent 93c8155 commit 51c7c26

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
// @fb-only
9+
10+
#pragma once
11+
12+
#include <IGLU/simdtypes/SimdTypes.h>
13+
#include <shell/shared/platform/Platform.h>
14+
#include <shell/shared/renderSession/RenderSession.h>
15+
#include <igl/IGL.h>
16+
17+
namespace igl::shell {
18+
19+
class StencilOutlineSession : public RenderSession {
20+
public:
21+
explicit StencilOutlineSession(std::shared_ptr<Platform> platform) :
22+
RenderSession(std::move(platform)) {}
23+
void initialize() noexcept override;
24+
void update(SurfaceTextures surfaceTextures) noexcept override;
25+
26+
private:
27+
std::shared_ptr<IFramebuffer> framebuffer_;
28+
std::shared_ptr<IRenderPipelineState> pipelineState_;
29+
std::shared_ptr<IRenderPipelineState> outlinePipelineState_;
30+
std::shared_ptr<IDepthStencilState> depthStencilStateWrite_;
31+
std::shared_ptr<IDepthStencilState> depthStencilStateOutline_;
32+
std::shared_ptr<IBuffer> vertexBuffer_;
33+
std::shared_ptr<IBuffer> indexBuffer_;
34+
std::shared_ptr<IVertexInputState> vertexInputState_;
35+
std::shared_ptr<IShaderStages> shaderStages_;
36+
std::shared_ptr<IShaderStages> outlineShaderStages_;
37+
RenderPassDesc renderPass_;
38+
};
39+
40+
} // namespace igl::shell

0 commit comments

Comments
 (0)