Exemple #1
0
 public IndexedBufferView(IntPtr vertexPter, VertexDescriptor vd, IASemantic semantic, int usageIndex, IntPtr indicesPter, int istride, int icount)
 {
     this.vertexPter  = (byte *)vertexPter + vd.OffsetOf(semantic, usageIndex);
     this.vstride     = vd.Size;
     this.indicesPter = (byte *)indicesPter;
     this.istride     = istride;
     this.icount      = icount;
 }
Exemple #2
0
 public BufferView(IntPtr baseAddr, VertexDescriptor vd, IASemantic semantic, int usageIndex)
 {
     pter   = baseAddr;
     offset = vd.OffsetOf(semantic, usageIndex);
     stride = vd.Size;
 }