public Boolean SetInputLayout(H1InputLayout inputLayout) { List <InputElement> inputElements = new List <InputElement>(); foreach (H1InputElementDescription element in inputLayout.InputElements) { InputElement inputElement = new InputElement(); inputElement.SemanticName = element.SemanticName; inputElement.SemanticIndex = element.SemanticIndex; inputElement.Format = H1RHIDefinitionHelper.ConvertToFormat(element.Format); inputElement.Slot = element.InputSlot; inputElements.Add(inputElement); } m_GraphicsPipelineStateDesc.InputLayout = new InputLayoutDescription(inputElements.ToArray()); return(true); }
public H1VertexDeclaration(H1VertexStream[] streams) { // create input layout based on the result m_InputLayoutDesc = new Gen2Layer.H1InputLayout(streams); }