Skip to content

Commit

Permalink
Fix sType for VkMemoryAllocateFlagsInfo
Browse files Browse the repository at this point in the history
sType must be VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO
https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkMemoryAllocateFlagsInfo.html

(cherry picked from commit a7b3d50)
  • Loading branch information
apazylbe committed Oct 13, 2020
1 parent e755b80 commit b770798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gapis/api/vulkan/state_rebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ func (sb *stateBuilder) createDeviceMemory(mem DeviceMemoryObjectʳ, allowDedica
flags := mem.MemoryAllocateFlagsInfo()
pNext = NewVoidᶜᵖ(sb.MustAllocReadData(
NewVkMemoryAllocateFlagsInfo(sb.ta,
VkStructureType_VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,
VkStructureType_VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO,
pNext, // pNext
flags.Flags(), // flags
flags.DeviceMask(), // deviceMask
Expand Down

0 comments on commit b770798

Please sign in to comment.