|
|
@ -310,14 +310,6 @@ static void UNITY_INTERFACE_API OnRenderEventAndData(int eventID, void* data) |
|
|
ffx::CreateContext(feature.upscalingContext, nullptr, createUpscaling, s_BackendDesc); |
|
|
ffx::CreateContext(feature.upscalingContext, nullptr, createUpscaling, s_BackendDesc); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
case BaseEventId + FSR3PluginEvent::eSetTextures: |
|
|
|
|
|
auto* params = (FSR3TextureTable*)data; |
|
|
|
|
|
if (params->featureSlot < 0 || params->featureSlot >= s_Features.size()) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
auto& feature = s_Features[params->featureSlot]; |
|
|
|
|
|
feature.textureTable = *params; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|