title: Determining struct member byte-offsets at compile-time?
body: <p>I want to find the byte offset of a struct member at compile-time.  For example:</p>
  
  <pre><code>struct vertex_t
  {
      vec3_t position;
      vec3_t normal;
      vec2_t texcoord;
  }
  </code></pre>
  
  <p>I would want to know that the byte offset to <code>normal</code> is (in this case it should be <code>12</code>.)</p>
  
  <p>I know that I could use <code>offsetof</code>, but that is a run-time function and I'd prefer not to use it.</p>
  
  <p>Is what I'm trying to accomplish even possible?</p>
  
  <p><strong>EDIT</strong>: <code>offsetof</code> is compile-time, my bad!</p>