private IEnumerable <IEmitVal> DeclareInputElementsImpl( IEmitBlock block, string name, InputElementInfo info) { _inputElementCount++; yield return(block.Struct( "D3D11_INPUT_ELEMENT_DESC", block.LiteralString(string.Format("USER_{0}", name)), block.LiteralU32(0), info.Format, block.LiteralU32((UInt32)info.InputSlotIndex), block.LiteralU32((UInt32)info.ByteOffset), info.Index.InputSlotClass, block.LiteralU32((UInt32)info.Index.StepRate))); }
private IEnumerable<IEmitVal> DeclareInputElementsImpl( IEmitBlock block, string name, InputElementInfo info) { _inputElementCount++; yield return block.Struct( "D3D11_INPUT_ELEMENT_DESC", block.LiteralString(string.Format("USER_{0}", name)), block.LiteralU32(0), info.Format, block.LiteralU32((UInt32) info.InputSlotIndex), block.LiteralU32((UInt32) info.ByteOffset), info.Index.InputSlotClass, block.LiteralU32((UInt32) info.Index.StepRate)); }