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
13ff9e50
Unverified
Commit
13ff9e50
authored
Oct 16, 2021
by
Christian Forfang
Committed by
GitHub
Oct 16, 2021
Browse files
Options
Downloads
Patches
Plain Diff
dstAccessMask should be VK_ACCESS_SHADER_READ_BIT
parent
fc89345f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
base/VulkanglTFModel.cpp
+1
-1
1 addition, 1 deletion
base/VulkanglTFModel.cpp
with
1 addition
and
1 deletion
base/VulkanglTFModel.cpp
+
1
−
1
View file @
13ff9e50
...
...
@@ -267,7 +267,7 @@ void vkglTF::Texture::fromglTfImage(tinygltf::Image &gltfimage, std::string path
imageMemoryBarrier
.
oldLayout
=
VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL
;
imageMemoryBarrier
.
newLayout
=
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
;
imageMemoryBarrier
.
srcAccessMask
=
VK_ACCESS_TRANSFER_WRITE_BIT
;
imageMemoryBarrier
.
dstAccessMask
=
VK_
PIPELINE_STAGE_FRAGMENT_SHADER
_BIT
;
imageMemoryBarrier
.
dstAccessMask
=
VK_
ACCESS_SHADER_READ
_BIT
;
imageMemoryBarrier
.
image
=
image
;
imageMemoryBarrier
.
subresourceRange
=
subresourceRange
;
vkCmdPipelineBarrier
(
blitCmd
,
VK_PIPELINE_STAGE_ALL_COMMANDS_BIT
,
VK_PIPELINE_STAGE_ALL_COMMANDS_BIT
,
0
,
0
,
nullptr
,
0
,
nullptr
,
1
,
&
imageMemoryBarrier
);
...
...
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
sign in
to comment