GetDimensions for Buffer?

Since GetDimensions is not available for buffers, is there a way to know the size of a buffer in a shader?

Thanks.

[141 byte] By [PascalMignot] at [2008-2-21]
# 1
You would have to pass the buffer size to your shader manually, such as via a CB.
SamZ.Glassenberg at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Direct3D 10...