MCPcopy Create free account
hub / github.com/SaschaWillems/VulkanCapsViewer / vulkanVersionSupported

Method vulkanVersionSupported

vulkanDeviceInfo.cpp:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool VulkanDeviceInfo::vulkanVersionSupported(uint32_t major, uint32_t minor)
76{
77 uint32_t deviceMajor = VK_API_VERSION_MAJOR(props.apiVersion);
78 uint32_t deviceMinor = VK_API_VERSION_MINOR(props.apiVersion);
79 return ((deviceMajor > major) || ((deviceMajor == major) && (deviceMinor >= minor)));
80}
81
82bool VulkanDeviceInfo::extensionSupported(const char* extensionName)
83{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected