Lines Matching refs:TestLayer

83 struct TestLayer;
86 // TestLayer* layer - Access to the TestLayer object itself
87 // void* data - pointer to test specific thing, used to pass data from the test into the TestLayer
89 using FP_layer_callback = VkResult (*)(TestLayer& layer, void* data);
91 struct TestLayer {
95 BUILDER_VALUE(TestLayer, bool, is_meta_layer, false)
97 BUILDER_VALUE(TestLayer, uint32_t, api_version, VK_API_VERSION_1_0)
98 BUILDER_VALUE(TestLayer, uint32_t, reported_layer_props, 1)
99 BUILDER_VALUE(TestLayer, uint32_t, reported_extension_props, 0)
100 BUILDER_VALUE(TestLayer, uint32_t, reported_instance_version, VK_API_VERSION_1_0)
101 BUILDER_VALUE(TestLayer, uint32_t, implementation_version, 2)
102 BUILDER_VALUE(TestLayer, uint32_t, min_implementation_version, 0)
103 BUILDER_VALUE(TestLayer, std::string, description, {})
106 BUILDER_VALUE(TestLayer, uint32_t, alter_api_version, VK_API_VERSION_1_0)
108 BUILDER_VECTOR(TestLayer, std::string, alternative_function_names, alternative_function_name)
110 BUILDER_VECTOR(TestLayer, Extension, instance_extensions, instance_extension)
113 BUILDER_VECTOR(TestLayer, Extension, device_extensions, device_extension)
115 BUILDER_VALUE(TestLayer, std::string, enable_environment, {});
116 BUILDER_VALUE(TestLayer, std::string, disable_environment, {});
119 BUILDER_VECTOR(TestLayer, Extension, injected_instance_extensions, injected_instance_extension)
121 BUILDER_VECTOR(TestLayer, Extension, injected_device_extensions, injected_device_extension)
123 BUILDER_VECTOR(TestLayer, LayerDefinition, meta_component_layers, meta_component_layer);
125 BUILDER_VALUE(TestLayer, bool, intercept_vkEnumerateInstanceExtensionProperties, false)
126 BUILDER_VALUE(TestLayer, bool, intercept_vkEnumerateInstanceLayerProperties, false)
128 BUILDER_VALUE(TestLayer, std::function<VkResult(TestLayer& layer)>, create_instance_callback, {})
130 BUILDER_VALUE(TestLayer, std::function<VkResult(TestLayer& layer)>, create_device_callback, {})
134 BUILDER_VALUE(TestLayer, bool, add_phys_devs, false)
135 BUILDER_VALUE(TestLayer, bool, remove_phys_devs, false)
136 BUILDER_VALUE(TestLayer, bool, reorder_phys_devs, false)
137 BUILDER_VECTOR(TestLayer, VkPhysicalDevice, complete_physical_devices, complete_physical_device)
138 BUILDER_VECTOR(TestLayer, VkPhysicalDevice, removed_physical_devices, removed_physical_device)
139 BUILDER_VECTOR(TestLayer, VkPhysicalDevice, added_physical_devices, added_physical_device)
140 BUILDER_VECTOR(TestLayer, VkPhysicalDeviceGroupProperties, complete_physical_device_groups, complete_physical_device_group)
141 BUILDER_VECTOR(TestLayer, VkPhysicalDeviceGroupProperties, removed_physical_device_groups, removed_physical_device_group)
142 BUILDER_VECTOR(TestLayer, VkPhysicalDeviceGroupProperties, added_physical_device_groups, added_physical_device_group)
144 BUILDER_VECTOR(TestLayer, VulkanFunction, custom_physical_device_implementation_functions,
146 BUILDER_VECTOR(TestLayer, VulkanFunction, custom_device_implementation_functions, custom_device_implementation_function)
152 TestLayer& add_custom_physical_device_intercept_function(std::string func_name, PFN_vkVoidFunction function) {
158 TestLayer& add_custom_device_interception_function(std::string func_name, PFN_vkVoidFunction function) {
171 BUILDER_VALUE(TestLayer, std::string, make_spurious_log_in_create_instance, "")
172 BUILDER_VALUE(TestLayer, bool, do_spurious_allocations_in_create_instance, false)
174 BUILDER_VALUE(TestLayer, bool, do_spurious_allocations_in_create_device, false)
182 BUILDER_VALUE(TestLayer, bool, use_gipa_GetPhysicalDeviceProcAddr, true)
185 BUILDER_VALUE(TestLayer, bool, buggy_query_of_vkCreateDevice, false)
188 BUILDER_VALUE(TestLayer, bool, call_create_device_while_create_device_is_called, false)
189 BUILDER_VALUE(TestLayer, uint32_t, physical_device_index_to_use_during_create_device, 0)
191 BUILDER_VALUE(TestLayer, bool, check_if_EnumDevExtProps_is_same_as_queried_function, false)
194 BUILDER_VALUE(TestLayer, bool, clobber_pInstance, false)
196 BUILDER_VALUE(TestLayer, bool, clobber_pDevice, false)
219 using GetTestLayerFunc = TestLayer* (*)();
222 using GetNewTestLayerFunc = TestLayer* (*)();