mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Replace LoadVulkanLibrary() with an extern const char *VulkanLibraryName
This commit is contained in:
@@ -64,6 +64,9 @@ void DoPipelineBarrier(VkCommandBuffer cmd, uint32_t count, VkMemoryBarrier *bar
|
||||
int SampleCount(VkSampleCountFlagBits countFlag);
|
||||
int StageIndex(VkShaderStageFlagBits stageFlag);
|
||||
|
||||
// in vk_<platform>.cpp
|
||||
extern const char *VulkanLibraryName;
|
||||
|
||||
// structure for casting to easily iterate and template specialising Serialise
|
||||
struct VkGenericStruct
|
||||
{
|
||||
|
||||
@@ -167,7 +167,4 @@ VkResult WrappedVulkan::vkCreateXlibSurfaceKHR(
|
||||
|
||||
#endif
|
||||
|
||||
void *LoadVulkanLibrary()
|
||||
{
|
||||
return Process::LoadModule("libvulkan.so");
|
||||
}
|
||||
const char *VulkanLibraryName = "libvulkan.so";
|
||||
|
||||
@@ -4581,14 +4581,11 @@ void VulkanReplay::SetProxyBufferData(ResourceId bufid, byte *data, size_t dataS
|
||||
VULKANNOTIMP("SetProxyTextureData");
|
||||
}
|
||||
|
||||
// in vk_<platform>.cpp
|
||||
void *LoadVulkanLibrary();
|
||||
|
||||
ReplayCreateStatus Vulkan_CreateReplayDevice(const char *logfile, IReplayDriver **driver)
|
||||
{
|
||||
RDCDEBUG("Creating a VulkanReplay replay device");
|
||||
|
||||
void *module = LoadVulkanLibrary();
|
||||
void *module = Process::LoadModule(VulkanLibraryName);
|
||||
|
||||
if(module == NULL)
|
||||
{
|
||||
|
||||
@@ -107,7 +107,4 @@ VkBool32 WrappedVulkan::vkGetPhysicalDeviceWin32PresentationSupportKHR(
|
||||
return ObjDisp(physicalDevice)->GetPhysicalDeviceWin32PresentationSupportKHR(Unwrap(physicalDevice), queueFamilyIndex);
|
||||
}
|
||||
|
||||
void *LoadVulkanLibrary()
|
||||
{
|
||||
return Process::LoadModule("vulkan-1.dll");
|
||||
}
|
||||
const char *VulkanLibraryName = "vulkan-1.dll";
|
||||
|
||||
Reference in New Issue
Block a user