| 1157 | } |
| 1158 | |
| 1159 | void Buffer::BindMemory(const DeviceMemory& mem, VkDeviceSize mem_offset) { |
| 1160 | const auto result = vk::BindBufferMemory(device(), handle(), mem, mem_offset); |
| 1161 | // Allow successful calls and the calls that cause validation errors (but not actual Vulkan errors). |
| 1162 | // In the case of a validation error, it's part of the test logic how to handle it. |
| 1163 | ASSERT_TRUE(result == VK_SUCCESS || result == VK_ERROR_VALIDATION_FAILED_EXT); |
| 1164 | } |
| 1165 | |
| 1166 | VkDeviceAddress Buffer::Address() const { |
| 1167 | VkBufferDeviceAddressInfo bdai = vku::InitStructHelper(); |