class VkReadbackTest

Defined at line 47 of file ../../src/graphics/tests/vk_timer_query/../vkreadback/vkreadback.h

Supports Fuchsia external memory extension.

Public Members

static const int kWidth
static const int kHeight

Public Methods

void VkReadbackTest (Extension ext)

Constructor for a self contained instance or an instance that exports

its external memory handle.

Defined at line 39 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

void VkReadbackTest (zx::vmo exported_memory_vmo)

Constructor for an instance that imports an external memory VMO.

Defined at line 43 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

void ~VkReadbackTest ()

Defined at line 53 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

bool Initialize (uint32_t vk_api_verison)

Defined at line 55 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

vk::Device vulkan_device ()

Defined at line 89 of file ../../src/graphics/tests/vk_timer_query/../vkreadback/vkreadback.h

const vk::detail::DispatchLoaderDynamic & vulkan_loader ()

Defined at line 91 of file ../../src/graphics/tests/vk_timer_query/../vkreadback/vkreadback.h

vk::PhysicalDevice physical_device ()

Defined at line 93 of file ../../src/graphics/tests/vk_timer_query/../vkreadback/vkreadback.h

VulkanExtensionSupportState timeline_semaphore_support ()

Defined at line 94 of file ../../src/graphics/tests/vk_timer_query/../vkreadback/vkreadback.h

bool Exec (vk::Fence fence)

Defined at line 610 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

bool Submit (VkReadbackSubmitOptions options, vk::Fence fence)

Defined at line 653 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

bool Submit (VkReadbackSubmitOptions options, vk::Semaphore semaphore, uint64_t signal)

Defined at line 665 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

bool Wait ()

Defined at line 681 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

void TransferSubmittedStateFrom (const VkReadbackTest & export_source)

Reflects a Submit() executed by the VkReadbackTest that exported the memory

handle imported by this test.

Defined at line 688 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

bool Readback ()

Defined at line 699 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

zx::vmo TakeExportedMemoryVmo ()

Defined at line 394 of file ../../src/graphics/tests/vkreadback/vkreadback.cc

Enumerations

enum Extension
Name Value
NONE 0
VK_FUCHSIA_EXTERNAL_MEMORY 1
VK_ANDROID_EXTERNAL_MEMORY 2

Defined at line 52 of file ../../src/graphics/tests/vk_timer_query/../vkreadback/vkreadback.h

enum ImportExport
Name Value
SELF 0
IMPORT_EXTERNAL_MEMORY 1
EXPORT_EXTERNAL_MEMORY 2

Depending on how the test is initialized, it may be a self contained

instance, an instance that imports external memory or an instance that

exports external memory.

Defined at line 57 of file ../../src/graphics/tests/vk_timer_query/../vkreadback/vkreadback.h