Lost_Edge/Shaders/Private/InteractableScreenCapturerBitMapCS.usf

23 lines
614 B
Plaintext

// Oleg Petruny proprietary.
#include "/Engine/Public/Platform.ush"
Buffer<unsigned int> Input;
RWBuffer<unsigned int> Output;
[numthreads(THREADGROUPSIZE_X, 1, 1)]
void InteractableScreenCapturerBitMapCS(
uint3 dti : SV_DispatchThreadID)
{
switch (Input[dti.x])
{
case 0xFF00FFFF:
//Output[dti.x / 4] = Output[dti.x / 4] | (0xFF << 8 * (3 - (dti.x % 4))); // sets n-th byte to 0xFF
break;
default:
//Output[dti.x / 4] = Output[dti.x / 4] & ~(0xFF << 8 * (3 - (dti.x % 4))); // sets n-th byte to 0x00
break;
}
//Output[0] = 1;
}