IEnumerable <TemplatePassStageElement> GetStageElements(FoundryHandle stageElementListHandle) { var localContainer = Container; var list = new FixedHandleListInternal(stageElementListHandle); return(list.Select(localContainer, (handle) => (new TemplatePassStageElement(localContainer, handle)))); }
IEnumerable <BlockVariable> GetVariableEnumerable(FoundryHandle listHandle) { var localContainer = Container; var list = new FixedHandleListInternal(listHandle); return(list.Select <BlockVariable>(localContainer, (handle) => (new BlockVariable(localContainer, handle)))); }
internal IEnumerable <StructField> StructFields(ShaderContainer container) { if (IsStruct) { var list = new FixedHandleListInternal(m_v0); return(list.Select <StructField>(container, (handle) => (new StructField(container, handle)))); } return(Enumerable.Empty <StructField>()); }
internal IEnumerable <ShaderAttribute> Attributes(ShaderContainer container) { var list = new FixedHandleListInternal(m_AttributeListHandle); return(list.Select <ShaderAttribute>(container, (handle) => (new ShaderAttribute(container, handle)))); }
internal IEnumerable <IncludeDescriptor> Includes(ShaderContainer container) { var list = new FixedHandleListInternal(m_IncludeListHandle); return(list.Select <IncludeDescriptor>(container, (handle) => (new IncludeDescriptor(container, handle)))); }