Fix build for downstream VulkanSC uses

- video headers don't exist on this branch (and are not supported for Vulkan SC)
- loader interface files need to use vulkansc include instead of vulkan
- update documentation
This commit is contained in:
Daniel Koch
2022-05-13 13:05:35 -04:00
committed by Jon Leech
parent ff9cf1f1f2
commit c9792dff5d
5 changed files with 38 additions and 2 deletions

View File

@@ -23,7 +23,12 @@
#ifndef VKICD_H
#define VKICD_H
#if defined(VULKANSC)
#include "vulkan_sc.h"
#else
#include "vulkan.h"
#endif
#include <stdbool.h>
// Loader-ICD version negotiation API. Versions add the following features:

View File

@@ -26,7 +26,12 @@
*/
#pragma once
#if defined(VULKANSC)
#include "vulkan_sc.h"
#else
#include "vulkan.h"
#endif
#if defined(__GNUC__) && __GNUC__ >= 4
#define VK_LAYER_EXPORT __attribute__((visibility("default")))
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)