Improved the shader system by moving the data logic to ConstantBuffer.