|
|
@ -14,7 +14,7 @@ TEXTURE2D_X(InputOpaqueColor) : register(t0); |
|
|
TEXTURE2D_X(InputColor) : register(t1); |
|
|
TEXTURE2D_X(InputColor) : register(t1); |
|
|
TYPED_TEXTURE2D_X(float, InputDepth) : register(t2); |
|
|
TYPED_TEXTURE2D_X(float, InputDepth) : register(t2); |
|
|
TYPED_TEXTURE2D_X(float2, InputVelocity) : register(t3); |
|
|
TYPED_TEXTURE2D_X(float2, InputVelocity) : register(t3); |
|
|
RW_TEXTURE2D_X(half4, MotionDepthAlphaBuffer) : register(u0); |
|
|
|
|
|
|
|
|
RW_TEXTURE2D_X(float4, MotionDepthAlphaBuffer) : register(u0); |
|
|
RW_TEXTURE2D_X(uint, YCoCgColor) : register(u1); |
|
|
RW_TEXTURE2D_X(uint, YCoCgColor) : register(u1); |
|
|
|
|
|
|
|
|
[numthreads(8, 8, 1)] |
|
|
[numthreads(8, 8, 1)] |
|
|
@ -100,5 +100,5 @@ void CS(uint3 gl_GlobalInvocationID : SV_DispatchThreadID) |
|
|
alpha_mask = (0.35f * 1000.0f) * alpha_mask; |
|
|
alpha_mask = (0.35f * 1000.0f) * alpha_mask; |
|
|
|
|
|
|
|
|
YCoCgColor[COORD_TEXTURE2D_X(InputPos)] = ((x11 << 21u) | (y11 << 10u)) | z10; |
|
|
YCoCgColor[COORD_TEXTURE2D_X(InputPos)] = ((x11 << 21u) | (y11 << 10u)) | z10; |
|
|
MotionDepthAlphaBuffer[COORD_TEXTURE2D_X(InputPos)] = half4(motion, NearestZ, alpha_mask); |
|
|
|
|
|
|
|
|
MotionDepthAlphaBuffer[COORD_TEXTURE2D_X(InputPos)] = float4(motion, NearestZ, alpha_mask); |
|
|
} |
|
|
} |