Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
#include "HdrColor.hlsli"
Texture2D<float4> hdrBase:register(t0);
Texture2D<float4> proxyInput:register(t1);
Texture2D<float4> proxyOutput:register(t2);
RWTexture2D<float4> outputTex:register(u0);
float3 Decode(float3 c){return select(c<=.04045,c/12.92,pow((c+.055)/1.055,2.4));}
[numthreads(16,16,1)]void main(uint3 id:SV_DispatchThreadID){
uint w,h,sw,sh;outputTex.GetDimensions(w,h);hdrBase.GetDimensions(sw,sh);
if(id.x>=w||id.y>=h)return;
float2 pos=(float2(id.xy)+.5)*float2(sw,sh)/float2(w,h)-.5;
int2 q=int2(floor(pos)),last=int2(sw,sh)-1;float2 f=frac(pos);
float3 base=0,proxy=0;
for(int y=0;y<2;++y)for(int x=0;x<2;++x){
int2 p=clamp(q+int2(x,y),int2(0,0),last);
float weight=(x?f.x:1-f.x)*(y?f.y:1-f.y);
base+=hdrBase[p].rgb*weight;
proxy+=proxyInput[p].rgb*weight;
}
outputTex[id.xy]=float4(HdrRestore(base,Decode(proxy),Decode(proxyOutput[id.xy].rgb)),1);
}