Browse Source

Fixed a silly bug. Plugin works again now.

master
Nico de Poel 10 months ago
parent
commit
39b83c1d37
  1. 6
      FSR3UnityPlugin.cpp

6
FSR3UnityPlugin.cpp

@ -74,7 +74,7 @@ static void UNITY_INTERFACE_API OnGraphicsDeviceEvent(UnityGfxDeviceEventType ev
s_Upscaler = new FSR3Upscaler_DX12(s_Log, graphicsD3D12);
UnityD3D12PluginEventConfig eventConfig;
UnityD3D12PluginEventConfig eventConfig{};
eventConfig.graphicsQueueAccess = kUnityD3D12GraphicsQueueAccess_DontCare;
eventConfig.flags = kUnityD3D12EventConfigFlag_EnsurePreviousFrameSubmission | kUnityD3D12EventConfigFlag_FlushCommandBuffers | kUnityD3D12EventConfigFlag_SyncWorkerThreads | kUnityD3D12EventConfigFlag_ModifiesCommandBuffersState;
eventConfig.ensureActiveRenderTextureIsBound = false;
@ -92,7 +92,7 @@ static void UNITY_INTERFACE_API OnGraphicsDeviceEvent(UnityGfxDeviceEventType ev
s_Upscaler = new FSR3Upscaler_Vulkan(s_Log, graphicsVulkan);
UnityVulkanPluginEventConfig eventConfig;
UnityVulkanPluginEventConfig eventConfig{};
eventConfig.graphicsQueueAccess = kUnityVulkanGraphicsQueueAccess_DontCare;
eventConfig.flags = kUnityVulkanEventConfigFlag_EnsurePreviousFrameSubmission | kUnityVulkanEventConfigFlag_FlushCommandBuffers | kUnityVulkanEventConfigFlag_SyncWorkerThreads | kUnityVulkanEventConfigFlag_ModifiesCommandBuffersState;
eventConfig.renderPassPrecondition = kUnityVulkanRenderPass_EnsureInside;
@ -162,7 +162,7 @@ extern "C" uint32_t UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API AMDUP_CreateFeatu
{
if (s_Upscaler != nullptr)
{
s_Upscaler->CreateFeatureSlot();
return s_Upscaler->CreateFeatureSlot();
}
return UINT32_MAX;

Loading…
Cancel
Save