diff --git a/Assets/Plugins/Mac/MetalFX.swift b/Assets/Plugins/Mac/MetalFX.swift index 048289e..e5b996e 100644 --- a/Assets/Plugins/Mac/MetalFX.swift +++ b/Assets/Plugins/Mac/MetalFX.swift @@ -45,11 +45,11 @@ final class MTLHelper { } spatialScaler.colorTexture = srcTexture - spatialScaler.outputTexture = currentFrameUpscaledColor + spatialScaler.outputTexture = dstTexture spatialScaler.encode(commandBuffer: commandBuffer) - let blitEncoder = commandBuffer.makeBlitCommandEncoder(); - blitEncoder?.copy(from: currentFrameUpscaledColor, to: dstTexture) - blitEncoder?.endEncoding() + //let blitEncoder = commandBuffer.makeBlitCommandEncoder(); + //blitEncoder?.copy(from: currentFrameUpscaledColor, to: dstTexture) + //blitEncoder?.endEncoding() commandBuffer.commit() } } diff --git a/Packages/com.unity.render-pipelines.universal@14.0.11/Runtime/SuperRendering/SR/Scripts/MetalFx.cs b/Packages/com.unity.render-pipelines.universal@14.0.11/Runtime/SuperRendering/SR/Scripts/MetalFx.cs index 166db1c..96e37c3 100644 --- a/Packages/com.unity.render-pipelines.universal@14.0.11/Runtime/SuperRendering/SR/Scripts/MetalFx.cs +++ b/Packages/com.unity.render-pipelines.universal@14.0.11/Runtime/SuperRendering/SR/Scripts/MetalFx.cs @@ -72,7 +72,6 @@ namespace X.Rendering.Feature [DllImport("__Internal", EntryPoint = "callMetalFX_SpatialScaling")] static extern void CallNativeMethod(IntPtr srcTexture, IntPtr dstTexture); // cmd.SetRenderTarget(destination, RenderBufferLoadAction.DontCare, RenderBufferStoreAction.Store, RenderBufferLoadAction.DontCare, RenderBufferStoreAction.DontCare); - // ネイティブ側にてscalingした結果を`dst`に書き込む CallNativeMethod(source.rt.GetNativeTexturePtr(), destination.rt.GetNativeTexturePtr()); //cmd.Blit(dstRT, destination); //cmd.IssuePluginEventAndData(RenderingPlugin.GetRenderEventAndDataFunc(), (int)RenderingPlugin.NativeRenderingEvent.SpatialUpScale, dataPtr);