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

Method Init

tests/framework/sync_helper.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void BarrierQueueFamilyBase::QueueFamilyObjs::Init(vkt::Device* device, uint32_t qf_index, VkQueue qf_queue,
46 VkCommandPoolCreateFlags cp_flags) {
47 index = qf_index;
48 queue = new vkt::Queue(qf_queue, qf_index);
49 command_pool = new vkt::CommandPool(*device, qf_index, cp_flags);
50 command_buffer = new vkt::CommandBuffer(*device, *command_pool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
51 command_buffer2 = new vkt::CommandBuffer(*device, *command_pool, VK_COMMAND_BUFFER_LEVEL_PRIMARY);
52}
53
54BarrierQueueFamilyBase::Context::Context(VkLayerTest* test, const std::vector<uint32_t>& queue_family_indices) : layer_test(test) {
55 if (0 == queue_family_indices.size()) {

Callers 1

ContextMethod · 0.45

Calls 8

make_spanFunction · 0.85
DeviceObjMethod · 0.80
SetLayoutMethod · 0.80
InitNoMemoryMethod · 0.80
initializedMethod · 0.80
BufferMemoryBarrierMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected