Http://www.gamedev.net/topic/578866-d3d10-how-to-increase-maxcount-of-sv_clipdistance/
The d3d # _ clip_or_cull_distance _ * values are # defines in the d3d11. h header file. for distance count the value is 8 and for element count the value is 2. this means you can have any number of clip or cull values provide that their sum is 8 or less and that they must be fit into 2 vec4 registers.
In d3d10 + you have to code the math yourself in the shader to put the vertex through the plane equation and then store the resulting distance value in one of the registers. values greater than or equal to zero shocould not be clipped/culled. the values you provide will be interpolated so that each pixel is clipped appropriately.
Here is an example, using just cull distance.
Cbuffer clipplanes
{
Float4 planes [6];
};
Struct vs_out
{
Float4 pos: sv_position;
Float4 clips [2]: sv_culldistance;
};
Vs_out vsmain (float4 pos: sv_position)
{
Vs_out vsout = (vs_out) 0;
Vsout. Pos = Pos;
For (uint I = 0; I <planes. length; ++ I)
{
(Float [8]) vsout. Clips) [I] = dot (planes [I]. XYZ, POS. XYZ)-planes [I]. W;
}
Return vsout;
}
Cull/clip distance example