Instead of defining struct functions in header file, only declare them
in the header file and define them in the source file.
}
#endif // VULKAN_VALIDATION == 1
+dither::internal::QueueFamilyIndices::QueueFamilyIndices() : computeFamily() {}
+
+bool dither::internal::QueueFamilyIndices::isComplete() {
+ return computeFamily.has_value();
+}
+
dither::internal::QueueFamilyIndices
dither::internal::vulkan_find_queue_families(VkPhysicalDevice device) {
QueueFamilyIndices indices;
#if DITHERING_VULKAN_ENABLED == 1
struct QueueFamilyIndices {
- QueueFamilyIndices() : computeFamily() {}
+ QueueFamilyIndices();
std::optional<uint32_t> computeFamily;
- bool isComplete() { return computeFamily.has_value(); }
+ bool isComplete();
};
QueueFamilyIndices vulkan_find_queue_families(VkPhysicalDevice device);