Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RWTH VR Cluster Plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
RWTH VR Cluster Plugin
Commits
864ddc52
Commit
864ddc52
authored
1 year ago
by
David Gilbert
Browse files
Options
Downloads
Patches
Plain Diff
feature(cave): Initial enabling of present barrier extension. Requires modified engine.
parent
ec0a2b9c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
RWTHVRCluster.uplugin
+1
-1
1 addition, 1 deletion
RWTHVRCluster.uplugin
Source/RWTHVRCluster/Private/RWTHVRCluster.cpp
+57
-1
57 additions, 1 deletion
Source/RWTHVRCluster/Private/RWTHVRCluster.cpp
Source/RWTHVRCluster/RWTHVRCluster.Build.cs
+9
-6
9 additions, 6 deletions
Source/RWTHVRCluster/RWTHVRCluster.Build.cs
with
67 additions
and
8 deletions
RWTHVRCluster.uplugin
+
1
−
1
View file @
864ddc52
...
...
@@ -22,7 +22,7 @@
{
"Name": "RWTHVRCluster",
"Type": "Runtime",
"LoadingPhase": "
Defaul
t",
"LoadingPhase": "
PostConfigIni
t",
"WhitelistPlatforms": [
"Win64",
"Linux"
...
...
This diff is collapsed.
Click to expand it.
Source/RWTHVRCluster/Private/RWTHVRCluster.cpp
+
57
−
1
View file @
864ddc52
#include
"RWTHVRCluster.h"
#include
"IVulkanDynamicRHI.h"
#define LOCTEXT_NAMESPACE "FRWTHVRClusterModule"
void
FRWTHVRClusterModule
::
StartupModule
()
{
ClusterConsole
.
Register
();
}
void
FRWTHVRClusterModule
::
StartupModule
()
{
ClusterConsole
.
Register
();
if
(
FApp
::
CanEverRender
())
{
#if PLATFORM_WINDOWS
TCHAR
const
*
DynamicRHIModuleName
=
GetSelectedDynamicRHIModuleName
(
false
);
#elif PLATFORM_LINUX
TCHAR
const
*
DynamicRHIModuleName
=
TEXT
(
"VulkanRHI"
);
#endif
if
(
FString
(
"VulkanRHI"
)
==
FString
(
DynamicRHIModuleName
))
{
TArray
<
ANSICHAR
const
*>
const
ExtensionsToAdd
{
VK_NV_PRESENT_BARRIER_EXTENSION_NAME
};
TArray
<
ANSICHAR
const
*>
const
InstanceExtensionsToAdd
{
VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME
};
IVulkanDynamicRHI
::
AddEnabledDeviceExtensionsAndLayers
(
ExtensionsToAdd
,
TArray
<
ANSICHAR
const
*>
());
IVulkanDynamicRHI
::
AddEnabledInstanceExtensionsAndLayers
({
InstanceExtensionsToAdd
},
TArray
<
ANSICHAR
const
*>
());
}
/*
FCoreDelegates::OnPostEngineInit.AddLambda(
[]()
{
switch (GDynamicRHI->GetInterfaceType())
{
case ERHIInterfaceType::Vulkan:
FAVDevice::GetHardwareDevice()->SetContext<FVideoContextVulkan>(MakeShared<FVideoContextVulkan>(
GetIVulkanDynamicRHI()->RHIGetVkInstance(), GetIVulkanDynamicRHI()->RHIGetVkDevice(),
GetIVulkanDynamicRHI()->RHIGetVkPhysicalDevice(), [](char const* Name) -> PFN_vkVoidFunction
{ return (PFN_vkVoidFunction)GetIVulkanDynamicRHI()->RHIGetVkDeviceProcAddr(Name); }));
break;
#if PLATFORM_WINDOWS
case ERHIInterfaceType::D3D11:
FAVDevice::GetHardwareDevice()->SetContext<FVideoContextD3D11>(
MakeShared<FVideoContextD3D11>(GetID3D11DynamicRHI()->RHIGetDevice()));
break;
case ERHIInterfaceType::D3D12:
FAVDevice::GetHardwareDevice()->SetContext<FVideoContextD3D12>(
MakeShared<FVideoContextD3D12>(GetID3D12DynamicRHI()->RHIGetDevice(0)));
break;
#endif
default:
break;
}
FAVDevice::GetHardwareDevice()->SetContext<FVideoContextRHI>(MakeShared<FVideoContextRHI>());
});
*/
}
}
void
FRWTHVRClusterModule
::
ShutdownModule
()
{
ClusterConsole
.
Unregister
();
}
...
...
This diff is collapsed.
Click to expand it.
Source/RWTHVRCluster/RWTHVRCluster.Build.cs
+
9
−
6
View file @
864ddc52
...
...
@@ -27,10 +27,17 @@ public class RWTHVRCluster : ModuleRules
"SlateCore"
,
"LiveLink"
,
"HeadMountedDisplay"
,
// required for MotionControllerComp
"DisplayCluster"
"DisplayCluster"
,
"RenderCore"
}
);
PrivateDependencyModuleNames
.
AddRange
(
new
string
[]
{
"VulkanRHI"
,
"RHI"
,
"Vulkan"
}
);
if
(
IsPluginEnabledForTarget
(
"DTrackPlugin"
,
base
.
Target
))
{
PublicDependencyModuleNames
.
AddRange
(
...
...
@@ -42,10 +49,6 @@ public class RWTHVRCluster : ModuleRules
);
}
PrivateDependencyModuleNames
.
AddRange
(
new
string
[]
{
}
);
DynamicallyLoadedModuleNames
.
AddRange
(
new
string
[]
{
}
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment