Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vulkan render to OpenGL texture
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antonio Ospite
Vulkan render to OpenGL texture
Commits
e427c876
Unverified
Commit
e427c876
authored
3 years ago
by
JJCUBER
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed typos in comments of triangle.cpp
parent
91958aca
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/triangle/triangle.cpp
+4
-4
4 additions, 4 deletions
examples/triangle/triangle.cpp
with
4 additions
and
4 deletions
examples/triangle/triangle.cpp
+
4
−
4
View file @
e427c876
...
...
@@ -2,7 +2,7 @@
* Vulkan Example - Basic indexed triangle rendering
*
* Note:
* This is a "pedal to the metal" example to show off how to get Vulkan up an displaying something
* This is a "pedal to the metal" example to show off how to get Vulkan up an
d
displaying something
* Contrary to the other examples, this one won't make use of helper functions or initializers
* Except in a few cases (swap chain setup e.g.)
*
...
...
@@ -87,7 +87,7 @@ public:
// Pipelines (often called "pipeline state objects") are used to bake all states that affect a pipeline
// While in OpenGL every state can be changed at (almost) any time, Vulkan requires to layout the graphics (and compute) pipeline states upfront
// So for each combination of non-dynamic pipeline states you need a new pipeline (there are a few exceptions to this not discussed here)
// Even though this adds a new dimension of planing ahead, it's a great opportunity for performance optimizations by the driver
// Even though this adds a new dimension of plan
n
ing ahead, it's a great opportunity for performance optimizations by the driver
VkPipeline
pipeline
;
// The descriptor set layout describes the shader binding layout (without actually referencing descriptor)
...
...
@@ -182,10 +182,10 @@ public:
semaphoreCreateInfo
.
sType
=
VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO
;
semaphoreCreateInfo
.
pNext
=
nullptr
;
// Semaphore used to ensure
s
that image presentation is complete before starting to submit again
// Semaphore used to ensure that image presentation is complete before starting to submit again
VK_CHECK_RESULT
(
vkCreateSemaphore
(
device
,
&
semaphoreCreateInfo
,
nullptr
,
&
presentCompleteSemaphore
));
// Semaphore used to ensure
s
that all commands submitted have been finished before submitting the image to the queue
// Semaphore used to ensure that all commands submitted have been finished before submitting the image to the queue
VK_CHECK_RESULT
(
vkCreateSemaphore
(
device
,
&
semaphoreCreateInfo
,
nullptr
,
&
renderCompleteSemaphore
));
// Fences (Used to check draw command buffer completion)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment