|
|
@ -8,11 +8,11 @@ namespace UnityEngine.Rendering.PostProcessing |
|
|
|
|
|
|
|
|
protected override void DoRender(CommandBuffer cmd, PostProcessRenderContext context, Upscaling config) |
|
|
protected override void DoRender(CommandBuffer cmd, PostProcessRenderContext context, Upscaling config) |
|
|
{ |
|
|
{ |
|
|
Convert(cmd, context, config); |
|
|
|
|
|
|
|
|
Convert(cmd, context); |
|
|
Upscale(cmd, context); |
|
|
Upscale(cmd, context); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void Convert(CommandBuffer cmd, PostProcessRenderContext context, Upscaling config) |
|
|
|
|
|
|
|
|
private void Convert(CommandBuffer cmd, PostProcessRenderContext context) |
|
|
{ |
|
|
{ |
|
|
var shader = context.resources.computeShaders.sgsr2Upscaler.twoPassCompute.convert; |
|
|
var shader = context.resources.computeShaders.sgsr2Upscaler.twoPassCompute.convert; |
|
|
int kernelIndex = shader.FindKernel("CS"); |
|
|
int kernelIndex = shader.FindKernel("CS"); |
|
|
|