Esempio n. 1
0
 public SourceChannel(Component_RenderingPipeline.RenderSceneData.MeshDataRenderOperation sourceOper, VertexElementSemantic semantic, VertexElementType type)
     : this()
 {
     if (sourceOper.VertexStructure.GetElementBySemantic(semantic, out sourceElement) && sourceElement.Type == type)
     {
         sourceBuffer = sourceOper.VertexBuffers[sourceElement.Source];
         SourceData   = sourceBuffer.ExtractChannel <TBuffer>(sourceElement.Offset);
         Exists       = true;
     }
 }