MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / BindMemory

Method BindMemory

tests/framework/binding.cpp:1159–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1157}
1158
1159void 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
1166VkDeviceAddress Buffer::Address() const {
1167 VkBufferDeviceAddressInfo bdai = vku::InitStructHelper();

Callers 15

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

BindBufferMemoryFunction · 0.85
BindImageMemoryFunction · 0.85

Tested by

no test coverage detected