What is the difference between constant buffer (dcl_cb) and literal (dcl_literal)

Discussion created by rainysky on Sep 12, 2009
Latest reply on Sep 12, 2009 by gaurav.garg

I am newbie of IL programming.

IL do support the "dcl_literal" syntax to define the constant values. And the constant buffer is also used to store constant values.

So what is the difference between them? What is the advantage of constant buffer (dcl_cb)?