title: How to set SHADEMODE to D3DSHADE_FLAT in directX 11
body: <p>in DirectX 9 it is
  g_d3dDevice->SetRenderState( D3DRS_SHADEMODE , D3DSHADE_FLAT);
  what about the dx11's API</p>
  
  <p>thanks</p>
  
  <p>////////update 1///////</p>
  
  <p>vertex/pixel sharder and light will not make the effect at all.
  for example. 3 vectex with red  , green , blue color.
  if open FLAT ode , it will fill all triangle with first color, if SMOOTH mode , you will get a colorful triangle using Gouraud Shading.</p>
  
  <p>in vertex sharder i got the vertex color.</p>
  
  <p>in pixel sharder i got the pixel color but has already interpolated.</p>
  
  <p>no light no normal info , it is a 2d programme.</p>
  
  <p>and i don't ask for a method to fill the triangle with same color. I only find the way to using FLAT SHADEMODE.</p>
  
  <p>////////update 2/////// </p>
  
  <pre><code>struct VertexShaderInput
  {
      float2 pos : POSITION;
      float4 color : COLOR0;
  };
  
  struct VertexShaderOutput
  {
      float4 pos : SV_POSITION;
      nointerpolation float4 color : COLOR0;
  };
  </code></pre>
  
  <p>but it is using Gouraud Shading also. </p>
  
  <p>////////update 3///////</p>
  
  <p>I find a topic</p>
  
  <p><a href="http://www.gamedev.net/topic/621313-directx11-and-smooth-shading/" rel="nofollow">http://www.gamedev.net/topic/621313-directx11-and-smooth-shading</a>
  author said ”I didn't activate smooth shading in Blender“
  but i can't find the keyword in Blender</p>