MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / draw_gui

Method draw_gui

samples/performance/afbc/afbc.cpp:116–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void 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
131std::unique_ptr<vkb::VulkanSampleC> create_afbc()
132{

Callers

nothing calls this directly

Calls 4

show_options_windowMethod · 0.80
is_extension_enabledMethod · 0.45

Tested by

no test coverage detected