To exchange data between CPU and GPU, you have to generate two buffers. One on CPU and one on GPU.

To exchange Data between CPU/GPU in SlimDX you have to:

create a structure of data that corresponds to the structure in shader

create a DirectX buffer, at least in the byte size of the structure. The byte size of the buffer must be dividable by 16.

write the structure into a DataStream

Update the DirectX buffer with the DataStream

In the example slot 3 is used for constant buffer.

CPU

'#Pixel Shader Variablen
Public Structure BufferStructurePS
Public Color As Vector4
Public GlowColor As Vector4
Public EmessivePower As Single
Public SpecularPower As Single
Public SpecularIntensity As Single
End Structure