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

Method AFBCSample

samples/performance/afbc/afbc.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#include "scene_graph/node.h"
35
36AFBCSample::AFBCSample()
37{
38 // Extension that may be used to query if AFBC is enabled
39 add_device_extension(VK_EXT_IMAGE_COMPRESSION_CONTROL_EXTENSION_NAME, true);
40
41 auto &config = get_configuration();
42
43 config.insert<vkb::BoolSetting>(0, afbc_enabled, false);
44 config.insert<vkb::BoolSetting>(1, afbc_enabled, true);
45}
46
47bool AFBCSample::prepare(const vkb::ApplicationOptions &options)
48{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected