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; } }