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

Method AllocateAndBindMemory

tests/framework/binding.cpp:1153–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1151}
1152
1153void Buffer::AllocateAndBindMemory(const Device& dev, VkMemoryPropertyFlags mem_props, void* alloc_info_pnext) {
1154 assert(!internal_mem_.initialized());
1155 internal_mem_.Init(dev, DeviceMemory::GetResourceAllocInfo(dev, MemoryRequirements(), mem_props, alloc_info_pnext));
1156 BindMemory(internal_mem_, 0);
1157}
1158
1159void Buffer::BindMemory(const DeviceMemory& mem, VkDeviceSize mem_offset) {
1160 const auto result = vk::BindBufferMemory(device(), handle(), mem, mem_offset);

Callers 5

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

initializedMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected