Lost_Edge/Shaders/Private/InteractableScreenCapturerBitMapCS.usf

23 lines
641 B
Plaintext
Raw Permalink Normal View History

// 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)
{
Output[dti.x] = Input[dti.x];
//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;
//}
}