Skip to content
Permalink
Browse files

[Vulkan] Fix validation for texture upload

  • Loading branch information
xen2 committed Jul 26, 2019
1 parent 0c5a67c commit 5eef1bc988e22753b728bb0036e50ee67a8e45f0
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/engine/Xenko.Graphics/Vulkan/Texture.Vulkan.cs
@@ -313,7 +313,7 @@ private unsafe void InitializeImage(DataBox[] dataBoxes)

// Image barrier
var initialBarrier = new ImageMemoryBarrier(NativeImage, ImageLayout.Undefined, ImageLayout.TransferDestinationOptimal, AccessFlags.None, AccessFlags.TransferWrite, new ImageSubresourceRange(NativeImageAspect));
commandBuffer.PipelineBarrier(PipelineStageFlags.TopOfPipe, PipelineStageFlags.Transfer, DependencyFlags.None, 0, null, 1, &bufferMemoryBarrier, 1, &initialBarrier);
commandBuffer.PipelineBarrier(PipelineStageFlags.Host, PipelineStageFlags.Transfer, DependencyFlags.None, 0, null, 1, &bufferMemoryBarrier, 1, &initialBarrier);

// Copy data boxes to upload buffer
var copies = new BufferImageCopy[dataBoxes.Length];

0 comments on commit 5eef1bc

Please sign in to comment.
You can’t perform that action at this time.