public ImageShaderTechniqueInfo(EffectTechnique technique) { this.WantMips = technique.GetBoolTechniqueAnnotationByName("wantmips", false); this.passInfo = new ImageShaderPassInfo[technique.Description.PassCount]; for (int i = 0; i < this.passInfo.Length; i++) { this.passInfo[i] = new ImageShaderPassInfo(technique.GetPassByIndex(i)); } }