You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
545 B
19 lines
545 B
#pragma kernel CS
|
|
|
|
Texture2D InColor: register(t0);
|
|
Texture2D<float> InDepth: register(t1);
|
|
Texture2D<float2> InMotionVectors: register(t2);
|
|
|
|
RWTexture2D<float4> OutColor: register(u0);
|
|
RWTexture2D<float> OutDepth: register(u1);
|
|
RWTexture2D<float2> OutMotionVectors: register(u2);
|
|
|
|
[numthreads(8, 8, 1)]
|
|
void CS(uint3 dtid : SV_DispatchThreadID)
|
|
{
|
|
uint2 InputPos = dtid.xy;
|
|
|
|
OutColor[InputPos] = InColor[InputPos];
|
|
OutDepth[InputPos] = InDepth[InputPos];
|
|
OutMotionVectors[InputPos] = InMotionVectors[InputPos];
|
|
}
|