Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f7b8d4

Browse files
generatedunixname89002005287564facebook-github-bot
generatedunixname89002005287564
authored andcommitted
fbsource//xplat/graphics/igl/public/samples/desktop
Reviewed By: EricGriffithDifferential Revision: D71603155fbshipit-source-id: 1c3bf84aa0af7ee6ac0e7733b3035310a764e162
1 parenta22c5a6 commit2f7b8d4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎samples/desktop/Tiny/Tiny.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static const uint32_t kNumColorAttachments = 1;
7474
#defineIGL_FORMAT fmt::format
7575
#endif// __cpp_lib_format
7676

77-
std::string codeVS =R"(
77+
staticstd::string codeVS =R"(
7878
#version 460
7979
layout (location=0) out vec3 color;
8080
const vec2 pos[3] = vec2[3](
@@ -106,7 +106,7 @@ void main() {
106106
};
107107
)";
108108
#else
109-
constchar* codeFS =R"(
109+
conststaticchar* codeFS =R"(
110110
#version 460
111111
layout (location=0) in vec3 color;
112112
layout (location=0) out vec4 out_FragColor;
@@ -118,15 +118,15 @@ void main() {
118118

119119
usingnamespaceigl;
120120

121-
GLFWwindow* window_ =nullptr;
122-
int width_ =0;
123-
int height_ =0;
121+
staticGLFWwindow* window_ =nullptr;
122+
staticint width_ =0;
123+
staticint height_ =0;
124124

125-
std::unique_ptr<IDevice> device_;
126-
std::shared_ptr<ICommandQueue> commandQueue_;
127-
RenderPassDesc renderPass_;
128-
std::shared_ptr<IFramebuffer> framebuffer_;
129-
std::shared_ptr<IRenderPipelineState> renderPipelineState_Triangle_;
125+
staticstd::unique_ptr<IDevice> device_;
126+
staticstd::shared_ptr<ICommandQueue> commandQueue_;
127+
staticRenderPassDesc renderPass_;
128+
staticstd::shared_ptr<IFramebuffer> framebuffer_;
129+
staticstd::shared_ptr<IRenderPipelineState> renderPipelineState_Triangle_;
130130

131131
staticboolinitWindow(GLFWwindow** outWindow) {
132132
if (!glfwInit()) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp