| 114 | } |
| 115 | |
| 116 | void AFBCSample::draw_gui() |
| 117 | { |
| 118 | get_gui().show_options_window( |
| 119 | /* body = */ [this]() { |
| 120 | ImGui::Checkbox("Enable AFBC", &afbc_enabled); |
| 121 | |
| 122 | if (get_device().is_extension_enabled(VK_EXT_IMAGE_COMPRESSION_CONTROL_EXTENSION_NAME)) |
| 123 | { |
| 124 | ImGui::SameLine(); |
| 125 | ImGui::Text("(%s)", vkb::image_compression_flags_to_string(get_render_context().get_swapchain().get_applied_compression()).c_str()); |
| 126 | } |
| 127 | }, |
| 128 | /* lines = */ 1); |
| 129 | } |
| 130 | |
| 131 | std::unique_ptr<vkb::VulkanSampleC> create_afbc() |
| 132 | { |
nothing calls this directly
no test coverage detected