RWBuffer and Buffer in compute shaders when they binding with the same resource

in the non-RDG example above, instead of calling ResourceArray.SetNumZeroed( BufferSize ) you can fill this array with your CPU data to initialize the buffer with it.
or use RHILockStructuredBuffer() and RHIUnlockStructuredBuffer() to copy your data in between from CPU to GPU and vice-versa.