public ShaderVariable[] GetPushConstants() { ShaderVariable[] pushConstants = new ShaderVariable[0]; IEnumerable <string> fields = _segmentCollection.GetPushConstantFields(); if (fields != null) { pushConstants = ShaderVariableParser.Parse(fields).ToArray(); for (int i = 0; i < pushConstants.Length; i++) { pushConstants[i].ShaderStage = ShaderStage; } } return(pushConstants); }